Tests: Allow RunCMake tests to pass generator expressions

This commit is contained in:
Brad King 2014-12-15 16:44:59 -05:00
parent 1b3ab3318d
commit da7155f5bc
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# See adjacent README.rst for documentation of this test infrastructure. # See adjacent README.rst for documentation of this test infrastructure.
macro(add_RunCMake_test test) macro(add_RunCMake_test test)
add_test(RunCMake.${test} ${CMAKE_CMAKE_COMMAND} add_test(NAME RunCMake.${test} COMMAND ${CMAKE_CMAKE_COMMAND}
-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR}
-DRunCMake_GENERATOR=${CMAKE_GENERATOR} -DRunCMake_GENERATOR=${CMAKE_GENERATOR}
-DRunCMake_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM} -DRunCMake_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM}