From efab856008e104fe8de237095b0c3ef62401f32a Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Wed, 14 Oct 2020 15:13:09 -0400 Subject: Help: Show environment field --- Help/manual/presets/example.json | 4 ++++ Tests/RunCMake/CMakePresets/DocumentationExample.cmake | 1 + 2 files changed, 5 insertions(+) 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") -- cgit v0.12