diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-07-01 14:24:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-01 14:24:48 (GMT) |
commit | 902c90636e1942c12a19f880239267fb30fd7367 (patch) | |
tree | 63ce9e5b452ee21cedac9dfd1f7fdcb5f451813d /Tests | |
parent | 623123aaa0dce491c3d2a365912ef8c443c8d553 (diff) | |
download | CMake-902c90636e1942c12a19f880239267fb30fd7367.zip CMake-902c90636e1942c12a19f880239267fb30fd7367.tar.gz CMake-902c90636e1942c12a19f880239267fb30fd7367.tar.bz2 |
Tests: Use add_test(NAME) signature in add_test_macro
This will allow generator expressions to be used in test arguments.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index cf7bd75..cb455e0 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -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}" |