mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: make the test really test targets with spaces
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user