diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-08-31 13:41:42 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-08-31 14:13:32 (GMT) |
commit | 215b9148eb0841224496e55f993b9ad7da55101e (patch) | |
tree | f9ecb25dbbfb75912017c2ea29e39ac4f2710218 /Tests/RunCMake/CMakePresets/RunCMakeTest.cmake | |
parent | 8bcc84283edff63d65a4f7364be0da927b8b8987 (diff) | |
download | CMake-215b9148eb0841224496e55f993b9ad7da55101e.zip CMake-215b9148eb0841224496e55f993b9ad7da55101e.tar.gz CMake-215b9148eb0841224496e55f993b9ad7da55101e.tar.bz2 |
CMakePresets.json: Fix formatting of --list-presets=all
Only print an extra newline after a section if that section was
actually printed.
Diffstat (limited to 'Tests/RunCMake/CMakePresets/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/CMakePresets/RunCMakeTest.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake index d097086..c511b34 100644 --- a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake @@ -304,6 +304,12 @@ unset(RunCMake_TEST_BINARY_DIR) run_cmake_presets(ListPresetsNoSuchPreset) run_cmake_presets(ListPresetsHidden) +set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/ListAllPresetsNoBuild.json.in") +run_cmake_presets(ListAllPresetsNoBuild --list-presets=all) + +set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/ListAllPresetsNoTest.json.in") +run_cmake_presets(ListAllPresetsNoTest --list-presets=all) + # Test warning and error flags set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/Warnings.json.in") set(CMakePresets_WARN_UNUSED_CLI 1) |