ENH: turn on spaces test for more platforms

This commit is contained in:
Ken Martin 2007-02-21 11:58:58 -05:00
parent 846b058f73
commit 276d61c90b
1 changed files with 4 additions and 2 deletions

View File

@ -1015,7 +1015,8 @@ IF(BUILD_TESTING)
# only add this test on platforms that support it
# some old versions of make simply cannot handle spaces in paths
IF (${CMAKE_TEST_MAKEPROGRAM} MATCHES "nmake|gmake|wmake")
IF ("${CMAKE_TEST_MAKEPROGRAM}" MATCHES "nmake|gmake|wmake" OR
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio|XCode")
ADD_TEST(SubDirSpaces ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/SubDirSpaces"
@ -1029,7 +1030,8 @@ IF(BUILD_TESTING)
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/ShouldBeHere"
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/testfromsubdir.obj"
)
ENDIF (${CMAKE_TEST_MAKEPROGRAM} MATCHES "nmake|gmake|wmake")
ENDIF ("${CMAKE_TEST_MAKEPROGRAM}" MATCHES "nmake|gmake|wmake" OR
"${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio|XCode")
IF (WIN32)
ADD_TEST(SubDir ${CMAKE_CTEST_COMMAND}