aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--common.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/common.cmake b/common.cmake
index f076d2d..e5af0db 100644
--- a/common.cmake
+++ b/common.cmake
@@ -44,8 +44,8 @@ endif()
# User-defined switches:
set(default_value ON)
-get_directory_property(parent_directory PARENT_DIRECTORY)
-if(parent_directory)
+get_directory_property(parent_dir PARENT_DIRECTORY)
+if(parent_dir)
set(default_value OFF)
endif()
@@ -59,11 +59,11 @@ if(NOT DEFINED CC_WINDOWS_DEF)
option(CC_WINDOWS_DEF "Define useful Windows macros" "${default_value}")
endif()
if(NOT DEFINED CC_STATIC_RUNTIME)
- set(cc_static_runtime_default "${default_value}")
+ set(static_runtime_default_value "${default_value}")
if(UNIX)
- set(cc_static_runtime_default OFF)
+ set(static_runtime_default_value OFF)
endif()
- option(CC_STATIC_RUNTIME "Link the runtime statically" "${cc_static_runtime_default}")
+ option(CC_STATIC_RUNTIME "Link the runtime statically" "${static_runtime_default_value}")
endif()
if(NOT DEFINED CC_STRIP_SYMBOLS)
option(CC_STRIP_SYMBOLS "Strip debug symbols" "${default_value}")