summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-07-01 14:24:47 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-01 14:24:48 (GMT)
commit902c90636e1942c12a19f880239267fb30fd7367 (patch)
tree63ce9e5b452ee21cedac9dfd1f7fdcb5f451813d /Tests
parent623123aaa0dce491c3d2a365912ef8c443c8d553 (diff)
downloadCMake-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.txt2
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}"