summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-07-27 15:45:57 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-07-27 15:45:57 (GMT)
commit3e42bf3e0575d8e203405d95fd24065ea6b70495 (patch)
treec094de26a076bb619ce3f96c0b51c6e038a41b26 /Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
parentf7cf69e34a1607e8ea2b6d10fef6a6058377c24e (diff)
downloadCMake-3e42bf3e0575d8e203405d95fd24065ea6b70495.zip
CMake-3e42bf3e0575d8e203405d95fd24065ea6b70495.tar.gz
CMake-3e42bf3e0575d8e203405d95fd24065ea6b70495.tar.bz2
CMakePresets: Check presets with their own file version
06e6981 added support for optional binaryDir and generator, but use the dependent preset's file version instead of the current preset's file version. Check presets with their own file version instead of their dependent's file version. Fixes: #22428
Diffstat (limited to 'Tests/RunCMake/CMakePresets/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CMakePresets/RunCMakeTest.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
index 31bd8a4..c31a645 100644
--- a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake
@@ -260,6 +260,7 @@ unset(CMakePresets_FILE)
run_cmake_presets(GoodUserOnly)
run_cmake_presets(GoodUserFromMain)
run_cmake_presets(GoodUserFromUser)
+run_cmake_presets(V2InheritV3Optional)
# Test CMakeUserPresets.json errors
run_cmake_presets(UserDuplicateInUser)