diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-21 04:38:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-21 04:38:26 +0300 |
commit | 7a26ec97f166a6f794eaecb7d79b6b413f604444 (patch) | |
tree | c945a876fff2c1bf5588e59345146545ac03431d | |
parent | ci: fix a bug in case no positional parameters (diff) | |
download | cmake-common-7a26ec97f166a6f794eaecb7d79b6b413f604444.tar.gz cmake-common-7a26ec97f166a6f794eaecb7d79b6b413f604444.zip |
common.cmake: rename some internal variables
Diffstat (limited to '')
-rw-r--r-- | common.cmake | 10 |
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}") |