ENH: make the test really test targets with spaces
This commit is contained in:
parent
84315a7d57
commit
245e7c3482
|
@ -1001,11 +1001,12 @@ IF(BUILD_TESTING)
|
||||||
)
|
)
|
||||||
ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
||||||
|
|
||||||
|
|
||||||
ADD_TEST(SubDirSpaces ${CMAKE_CTEST_COMMAND}
|
ADD_TEST(SubDirSpaces ${CMAKE_CTEST_COMMAND}
|
||||||
--build-and-test
|
--build-and-test
|
||||||
"${CMake_SOURCE_DIR}/Tests/SubDirSpaces"
|
"${CMake_SOURCE_DIR}/Tests/SubDirSpaces"
|
||||||
"${CMake_BINARY_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-generator ${CMAKE_TEST_GENERATOR}
|
||||||
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
||||||
--build-project SUBDIR
|
--build-project SUBDIR
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
PROJECT(SUBDIR)
|
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.")
|
WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.")
|
||||||
#WATCOM WMAKE does not support + in the name of a file!
|
#WATCOM WMAKE does not support + in the name of a file!
|
||||||
IF(WATCOM)
|
IF(WATCOM)
|
||||||
|
|
Loading…
Reference in New Issue