summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorSam Freed <safreed@microsoft.com>2021-06-03 22:33:58 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-07 17:56:44 (GMT)
commitefe7ac9022b18132d33c68919c81422d738cd672 (patch)
tree8318f2e00483eef44567c66b79413f493434062a /Tests/RunCMake
parent9c33ff4dda643f8a93d55f9895e31dce9056134f (diff)
downloadCMake-efe7ac9022b18132d33c68919c81422d738cd672.zip
CMake-efe7ac9022b18132d33c68919c81422d738cd672.tar.gz
CMake-efe7ac9022b18132d33c68919c81422d738cd672.tar.bz2
presets: Fix buildPreset "targets" not allowing a single string
Fixes: #22272
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CMakePresetsBuild/Good.json.in5
-rw-r--r--Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake2
2 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakePresetsBuild/Good.json.in b/Tests/RunCMake/CMakePresetsBuild/Good.json.in
index fd43c4e..3d0b838 100644
--- a/Tests/RunCMake/CMakePresetsBuild/Good.json.in
+++ b/Tests/RunCMake/CMakePresetsBuild/Good.json.in
@@ -73,6 +73,11 @@
"vendor": {
"example.com": "value"
}
+ },
+ {
+ "name": "singleTarget",
+ "inherits": "build-default",
+ "targets": "good"
}
]
}
diff --git a/Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake b/Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake
index afa22eb..2c8d1a0 100644
--- a/Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake
@@ -62,7 +62,7 @@ endfunction()
set(CMakePresets_SCHEMA_EXPECTED_RESULT 0)
-run_cmake_build_presets(Good "default;other" "build-other;withEnvironment;noEnvironment;macros;vendorObject")
+run_cmake_build_presets(Good "default;other" "build-other;withEnvironment;noEnvironment;macros;vendorObject;singleTarget")
run_cmake_build_presets(InvalidConfigurePreset "default" "badConfigurePreset")
run_cmake_build_presets(Condition "default" "enabled;disabled")