mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
Help: Show multiple ways of doing cacheVariables
This demonstrates both the simple string and the complex object, and ensures that they get automated testing.
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build/default",
|
||||
"cacheVariables": {
|
||||
"MY_CACHE_VARIABLE": {
|
||||
"FIRST_CACHE_VARIABLE": {
|
||||
"type": "BOOL",
|
||||
"value": "OFF"
|
||||
}
|
||||
},
|
||||
"SECOND_CACHE_VARIABLE": "ON"
|
||||
},
|
||||
"vendor": {
|
||||
"example.com/ExampleIDE/1.0": {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/TestVariable.cmake)
|
||||
|
||||
test_variable(MY_CACHE_VARIABLE "BOOL" "OFF")
|
||||
test_variable(FIRST_CACHE_VARIABLE "BOOL" "OFF")
|
||||
test_variable(SECOND_CACHE_VARIABLE "UNINITIALIZED" "ON")
|
||||
|
||||
Reference in New Issue
Block a user