summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/cache-v2.cmake
blob: 45b402de685b794eb5ad5bc371bff15a17a07507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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")