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:
Kyle Edwards
2020-10-14 15:11:40 -04:00
parent d30f85193f
commit 2208db114c
2 changed files with 5 additions and 3 deletions

View File

@@ -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": {

View File

@@ -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")