mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
Tests: Update tests to run in multi-config generators
This commit is contained in:
@@ -142,6 +142,10 @@ if(BUILD_TESTING)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(_isMultiConfig)
|
||||
set(test_options -C Debug)
|
||||
endif()
|
||||
|
||||
# Look for git to use for tests.
|
||||
find_program(GIT_EXECUTABLE NAMES git)
|
||||
|
||||
|
||||
@@ -5,5 +5,5 @@ add_test(NAME FindGLUT.Test COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
${build_generator_args}
|
||||
--build-project TestFindGLUT
|
||||
--build-options ${build_options}
|
||||
--test-command ${CMAKE_CTEST_COMMAND} -V
|
||||
--test-command ${CMAKE_CTEST_COMMAND} -V ${test_options}
|
||||
)
|
||||
|
||||
@@ -5,5 +5,5 @@ add_test(NAME FindGSL.rng COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
${build_generator_args}
|
||||
--build-project FindGSL_rng
|
||||
--build-options ${build_options}
|
||||
--test-command ${CMAKE_CTEST_COMMAND} -V
|
||||
--test-command ${CMAKE_CTEST_COMMAND} -V ${test_options}
|
||||
)
|
||||
|
||||
@@ -5,5 +5,5 @@ add_test(NAME FindOpenSSL.rand COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
${build_generator_args}
|
||||
--build-project FindOpenSSL_rand
|
||||
--build-options ${build_options}
|
||||
--test-command ${CMAKE_CTEST_COMMAND} -V
|
||||
--test-command ${CMAKE_CTEST_COMMAND} -V ${test_options}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user