summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-14 19:13:09 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-19 14:25:57 (GMT)
commitefab856008e104fe8de237095b0c3ef62401f32a (patch)
tree7c09e161ca6d0027d9b352589d5bb3070b52c246
parent2208db114c97f6cd88306507ca917008b8e37d47 (diff)
downloadCMake-efab856008e104fe8de237095b0c3ef62401f32a.zip
CMake-efab856008e104fe8de237095b0c3ef62401f32a.tar.gz
CMake-efab856008e104fe8de237095b0c3ef62401f32a.tar.bz2
Help: Show environment field
-rw-r--r--Help/manual/presets/example.json4
-rw-r--r--Tests/RunCMake/CMakePresets/DocumentationExample.cmake1
2 files changed, 5 insertions, 0 deletions
diff --git a/Help/manual/presets/example.json b/Help/manual/presets/example.json
index 6948628..f11d201 100644
--- a/Help/manual/presets/example.json
+++ b/Help/manual/presets/example.json
@@ -19,6 +19,10 @@
},
"SECOND_CACHE_VARIABLE": "ON"
},
+ "environment": {
+ "MY_ENVIRONMENT_VARIABLE": "Test",
+ "PATH": "$env{HOME}/ninja/bin:$penv{PATH}"
+ },
"vendor": {
"example.com/ExampleIDE/1.0": {
"autoFormat": true
diff --git a/Tests/RunCMake/CMakePresets/DocumentationExample.cmake b/Tests/RunCMake/CMakePresets/DocumentationExample.cmake
index 23886f0..d459e9e 100644
--- a/Tests/RunCMake/CMakePresets/DocumentationExample.cmake
+++ b/Tests/RunCMake/CMakePresets/DocumentationExample.cmake
@@ -2,3 +2,4 @@ include(${CMAKE_CURRENT_LIST_DIR}/TestVariable.cmake)
test_variable(FIRST_CACHE_VARIABLE "BOOL" "OFF")
test_variable(SECOND_CACHE_VARIABLE "UNINITIALIZED" "ON")
+test_environment_variable(MY_ENVIRONMENT_VARIABLE "Test")