You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
880 B
15 lines
880 B
option(CM_OPTION_BOOL "Testing option()" "OFF")
|
|
set(CM_SET_BOOL "ON" CACHE BOOL "Testing set(CACHE BOOL)")
|
|
mark_as_advanced(CM_SET_BOOL)
|
|
set(CM_SET_FILEPATH "dir1/dir2/empty.txt" CACHE FILEPATH "Testing set(CACHE FILEPATH)")
|
|
set(CM_SET_PATH "dir1/dir2" CACHE PATH "Testing set(CACHE PATH)")
|
|
set_property(CACHE CM_SET_PATH PROPERTY ADVANCED ON)
|
|
set(CM_SET_STRING "test" CACHE STRING "Testing set(CACHE STRING)")
|
|
set(CM_SET_STRINGS "1" CACHE STRING "Testing set(CACHE STRING) with STRINGS")
|
|
set_property(CACHE CM_SET_STRINGS PROPERTY STRINGS "1;2;3;4")
|
|
set(CM_SET_INTERNAL "int" CACHE INTERNAL "Testing set(CACHE INTERNAL)")
|
|
set_property(CACHE CM_SET_INTERNAL PROPERTY VALUE "int2")
|
|
set(CM_SET_TYPE "1" CACHE INTERNAL "Testing set(CACHE INTERNAL) with set_property(TYPE)")
|
|
set_property(CACHE CM_SET_TYPE PROPERTY TYPE "STRING")
|
|
set_property(CACHE CM_SET_TYPE PROPERTY ADVANCED "0")
|