summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresetsBuild
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMakePresetsBuild')
-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")