diff options
author | Sam Freed <safreed@microsoft.com> | 2021-06-03 22:33:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-07 17:56:44 (GMT) |
commit | efe7ac9022b18132d33c68919c81422d738cd672 (patch) | |
tree | 8318f2e00483eef44567c66b79413f493434062a /Tests/RunCMake | |
parent | 9c33ff4dda643f8a93d55f9895e31dce9056134f (diff) | |
download | CMake-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.in | 5 | ||||
-rw-r--r-- | Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake | 2 |
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") |