From d9052cffa2014a2bf23f15064c97f57ec042be14 Mon Sep 17 00:00:00 2001 From: ajneu Date: Tue, 26 Dec 2017 21:00:29 +0100 Subject: [PATCH] rename and mark-as-advanced the following cmake-variable used in function print_option: CURR_${OPT} -> PRINT_OPTION_CURR_${OPT} so that the date-project now has the following advanced cmake-variables: PRINT_OPTION_CURR_BUILD_TZ_STATIC PRINT_OPTION_CURR_USE_SYSTEM_TZ_DB PRINT_OPTION_CURR_USE_TZ_DB_IN_DOT --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23139d8d..f902b0ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,8 +11,9 @@ option( USE_TZ_DB_IN_DOT "Save the timezone database in the current folder" OFF option( BUILD_TZ_STATIC "Build a static version of library" ON ) function( print_option OPT ) - if ( NOT DEFINED CURR_${OPT} OR ( NOT CURR_${OPT} STREQUAL ${OPT} ) ) - set( CURR_${OPT} ${${OPT}} CACHE BOOL "" ) + if ( NOT DEFINED PRINT_OPTION_CURR_${OPT} OR ( NOT PRINT_OPTION_CURR_${OPT} STREQUAL ${OPT} ) ) + set( PRINT_OPTION_CURR_${OPT} ${${OPT}} CACHE BOOL "" ) + mark_as_advanced(PRINT_OPTION_CURR_${OPT}) message( "# date: ${OPT} ${${OPT}}" ) endif( ) endfunction( )