Skip to content

Commit d9052cf

Browse files
committed
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
1 parent 4476878 commit d9052cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ option( USE_TZ_DB_IN_DOT "Save the timezone database in the current folder" OFF
1111
option( BUILD_TZ_STATIC "Build a static version of library" ON )
1212

1313
function( print_option OPT )
14-
if ( NOT DEFINED CURR_${OPT} OR ( NOT CURR_${OPT} STREQUAL ${OPT} ) )
15-
set( CURR_${OPT} ${${OPT}} CACHE BOOL "" )
14+
if ( NOT DEFINED PRINT_OPTION_CURR_${OPT} OR ( NOT PRINT_OPTION_CURR_${OPT} STREQUAL ${OPT} ) )
15+
set( PRINT_OPTION_CURR_${OPT} ${${OPT}} CACHE BOOL "" )
16+
mark_as_advanced(PRINT_OPTION_CURR_${OPT})
1617
message( "# date: ${OPT} ${${OPT}}" )
1718
endif( )
1819
endfunction( )

0 commit comments

Comments
 (0)