summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresets/EmptyEnv.json.in
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-10-19 17:41:30 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-10-21 13:20:52 (GMT)
commit638557cbfe0618d5a0fc6f9088e34aac708f5519 (patch)
tree306150b829afe8b1a538fb891f023d9b59ff7a7b /Tests/RunCMake/CMakePresets/EmptyEnv.json.in
parentec3b3d2c2f16397b9a40f79a9783f3d207088b93 (diff)
downloadCMake-638557cbfe0618d5a0fc6f9088e34aac708f5519.zip
CMake-638557cbfe0618d5a0fc6f9088e34aac708f5519.tar.gz
CMake-638557cbfe0618d5a0fc6f9088e34aac708f5519.tar.bz2
CMakePresets.json: Properly report macro expansion errors
Make a distinction between strings which simply use the $vendor{<...>} macro, which is valid but makes it unusable by CMake, and strings which actually contain invalid macro expansions. Fixes: #21308
Diffstat (limited to 'Tests/RunCMake/CMakePresets/EmptyEnv.json.in')
-rw-r--r--Tests/RunCMake/CMakePresets/EmptyEnv.json.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/EmptyEnv.json.in b/Tests/RunCMake/CMakePresets/EmptyEnv.json.in
new file mode 100644
index 0000000..ef0d575
--- /dev/null
+++ b/Tests/RunCMake/CMakePresets/EmptyEnv.json.in
@@ -0,0 +1,13 @@
+{
+ "version": 1,
+ "configurePresets": [
+ {
+ "name": "EmptyEnv",
+ "generator": "@RunCMake_GENERATOR@",
+ "binaryDir": "${sourceDir}/build",
+ "cacheVariables": {
+ "MY_VAR": "$env{}"
+ }
+ }
+ ]
+}