From 2184fcfb006691a6ecf79762b4ce3c6b93266ab6 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Tue, 17 Sep 2024 20:29:10 +1000 Subject: Tests: Configure RunCMake.install cases with correct build type The run_install_test() function would build and install with the configuration hard-coded to Debug, but the configuration step did not specify any configuration. This resulted in a "no config" configuration, and the install step then wouldn't install the Debug export files. This would only be a problem if using a single config CMake generator, and it appears none of the existing tests relied on actually installing the config-specific export file. --- Tests/RunCMake/install/RunCMakeTest.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/RunCMake/install/RunCMakeTest.cmake b/Tests/RunCMake/install/RunCMakeTest.cmake index 295922c..844c4b9 100644 --- a/Tests/RunCMake/install/RunCMakeTest.cmake +++ b/Tests/RunCMake/install/RunCMakeTest.cmake @@ -7,7 +7,9 @@ function(run_install_test case) set(RunCMake_TEST_NO_CLEAN 1) file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}") file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}") + set(RunCMake_TEST_RAW_ARGS -DCMAKE_BUILD_TYPE:STRING=Debug) run_cmake(${case}) + unset(RunCMake_TEST_RAW_ARGS) set(RunCMake_TEST_OUTPUT_MERGE 1) run_cmake_command(${case}-build ${CMAKE_COMMAND} --build . --config Debug) unset(RunCMake_TEST_OUTPUT_MERGE) -- cgit v0.12