From 7a26ec97f166a6f794eaecb7d79b6b413f604444 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 21 Dec 2019 04:38:26 +0300 Subject: common.cmake: rename some internal variables --- common.cmake | 10 +++++----- 1 file 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}") -- cgit v1.2.3