summaryrefslogtreecommitdiffstats
path: root/Tests/SubDirSpaces/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-01-11 15:01:30 (GMT)
committerBrad King <brad.king@kitware.com>2011-01-11 15:01:30 (GMT)
commit19cb2ca47f2678a9eafc16f821fc786d3d8f5d0b (patch)
tree283abd5a7c7af3ced010d043da8b843508503da5 /Tests/SubDirSpaces/CMakeLists.txt
parentcaa45a5f817f3608c8f2b30b039925f4bafc0ea1 (diff)
downloadCMake-19cb2ca47f2678a9eafc16f821fc786d3d8f5d0b.zip
CMake-19cb2ca47f2678a9eafc16f821fc786d3d8f5d0b.tar.gz
CMake-19cb2ca47f2678a9eafc16f821fc786d3d8f5d0b.tar.bz2
Disable SubDirSpaces parens with GNU Make 3.82 (#11654)
GNU Make 3.82 incorrectly parses make dependencies involving parentheses in path names. See related upstream issue: http://savannah.gnu.org/bugs/?30612 Skip testing the ()-named subdirectory.
Diffstat (limited to 'Tests/SubDirSpaces/CMakeLists.txt')
-rw-r--r--Tests/SubDirSpaces/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/SubDirSpaces/CMakeLists.txt b/Tests/SubDirSpaces/CMakeLists.txt
index a647fef..879530b 100644
--- a/Tests/SubDirSpaces/CMakeLists.txt
+++ b/Tests/SubDirSpaces/CMakeLists.txt
@@ -13,7 +13,15 @@ set(CMAKE_PAREN TRUE)
IF("${CMAKE_MAKE_PROGRAM}" MATCHES "wmake")
message("wmake does not support () in path")
set(CMAKE_PAREN FALSE)
-ENDIF("${CMAKE_MAKE_PROGRAM}" MATCHES "wmake")
+elseif("${CMAKE_MAKE_PROGRAM}" MATCHES "make")
+ execute_process(COMMAND ${CMAKE_MAKE_PROGRAM} no_such_target --version
+ RESULT_VARIABLE res OUTPUT_VARIABLE out ERROR_VARIABLE out)
+ if("${out}" MATCHES "GNU Make 3.82")
+ # GNU Make 3.82 fails on parens: http://savannah.gnu.org/bugs/?30612
+ message(STATUS "GNU Make 3.82 sometimes fails on () in path")
+ set(CMAKE_PAREN FALSE)
+ endif()
+endif()
IF(CMAKE_PAREN)
ADD_DEFINITIONS(-DCMAKE_PAREN=1)