diff options
author | Sam Freed <safreed@microsoft.com> | 2021-06-03 22:33:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-08 11:47:54 (GMT) |
commit | 534c40e6d8801853c19435a8c2d732ca2b01b606 (patch) | |
tree | 574f6ac77ebea7616f90b946ee60e101f015a7cc /Tests | |
parent | 5d67632813d8f086fb6d2ec26d5bad495aa0d876 (diff) | |
download | CMake-534c40e6d8801853c19435a8c2d732ca2b01b606.zip CMake-534c40e6d8801853c19435a8c2d732ca2b01b606.tar.gz CMake-534c40e6d8801853c19435a8c2d732ca2b01b606.tar.bz2 |
presets: Fix buildPreset "targets" not allowing a single string
Fixes: #22272
Diffstat (limited to 'Tests')
-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 8acd6f4..c7f318c 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 f6ca6c5..a05ad9f 100644 --- a/Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMakePresetsBuild/RunCMakeTest.cmake @@ -70,7 +70,7 @@ else() set(Good_json_jobs [["jobs": 0,]]) endif() -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") set(CMakePresetsBuild_BUILD_ONLY 1) |