summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-02-21 16:58:58 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-02-21 16:58:58 (GMT)
commit276d61c90b5469725e0b2cfa1247be5ffd6b3bab (patch)
treed032dd041041157fac84e198e9c2fe6c5028aa58
parent846b058f73b8dc4e697f6decce71f5d24a112614 (diff)
downloadCMake-276d61c90b5469725e0b2cfa1247be5ffd6b3bab.zip
CMake-276d61c90b5469725e0b2cfa1247be5ffd6b3bab.tar.gz
CMake-276d61c90b5469725e0b2cfa1247be5ffd6b3bab.tar.bz2
ENH: turn on spaces test for more platforms
-rw-r--r--Source/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 87801ee..7d274e5 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -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}