summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")