Tests: Update tests to run in multi-config generators
parent
59b0ae6b24
commit
a7534c31e6
|
@ -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}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue