diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-02-19 19:48:04 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-02-19 19:48:04 (GMT) |
commit | 245e7c3482005798a81e1bc6641aaad4ca0a5b71 (patch) | |
tree | a5b6b0b98a700f7d638623a543b5f65ffe28f9ac | |
parent | 84315a7d576830ad93188750ca56bb171947f2f8 (diff) | |
download | CMake-245e7c3482005798a81e1bc6641aaad4ca0a5b71.zip CMake-245e7c3482005798a81e1bc6641aaad4ca0a5b71.tar.gz CMake-245e7c3482005798a81e1bc6641aaad4ca0a5b71.tar.bz2 |
ENH: make the test really test targets with spaces
-rw-r--r-- | Source/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/SubDirSpaces/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index a754b0e..354c126 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -1001,11 +1001,12 @@ IF(BUILD_TESTING) ) ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR) + ADD_TEST(SubDirSpaces ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/SubDirSpaces" "${CMake_BINARY_DIR}/Tests/SubDirSpaces" - --build-exe-dir "${CMake_BINARY_DIR}/Tests/SubDirSpaces/Executable" + --build-exe-dir "${CMake_BINARY_DIR}/Tests/SubDirSpaces/Executable Sources" --build-generator ${CMAKE_TEST_GENERATOR} --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} --build-project SUBDIR diff --git a/Tests/SubDirSpaces/CMakeLists.txt b/Tests/SubDirSpaces/CMakeLists.txt index 84474a8..3535070 100644 --- a/Tests/SubDirSpaces/CMakeLists.txt +++ b/Tests/SubDirSpaces/CMakeLists.txt @@ -1,5 +1,5 @@ PROJECT(SUBDIR) -SUBDIRS(Executable EXCLUDE_FROM_ALL "Some Examples") +SUBDIRS("Executable Sources" EXCLUDE_FROM_ALL "Some Examples") WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.") #WATCOM WMAKE does not support + in the name of a file! IF(WATCOM) |