Tests: Use add_test(NAME) signature in add_test_macro
This will allow generator expressions to be used in test arguments.
This commit is contained in:
parent
623123aaa0
commit
902c90636e
|
@ -3,7 +3,7 @@
|
|||
macro(ADD_TEST_MACRO NAME COMMAND)
|
||||
string(REPLACE "." "/" dir "${NAME}")
|
||||
string(REGEX REPLACE "[^.]*\\." "" proj "${NAME}")
|
||||
add_test(${NAME} ${CMAKE_CTEST_COMMAND}
|
||||
add_test(NAME "${NAME}" COMMAND "${CMAKE_CTEST_COMMAND}"
|
||||
--build-and-test
|
||||
"${CMake_SOURCE_DIR}/Tests/${dir}"
|
||||
"${CMake_BINARY_DIR}/Tests/${dir}"
|
||||
|
|
Loading…
Reference in New Issue