summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-22 15:05:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-22 15:05:50 (GMT)
commit13bd83c9537fa6712b0a1e4c10e6a5c33e5be0ae (patch)
treecdbd3ea8f334083333e91b486ce56addec340d9d /Source/CMakeLists.txt
parent2d6e914b2d22b63f48379eca97fcc822834e3c3a (diff)
downloadCMake-13bd83c9537fa6712b0a1e4c10e6a5c33e5be0ae.zip
CMake-13bd83c9537fa6712b0a1e4c10e6a5c33e5be0ae.tar.gz
CMake-13bd83c9537fa6712b0a1e4c10e6a5c33e5be0ae.tar.bz2
ENH: make sure EXECUTE_PROCESS is there because in bootstrap it is not
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index f452ceb..2da7dfe 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -1012,7 +1012,7 @@ IF(BUILD_TESTING)
)
ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
SET(MAKE_IS_GNU )
- IF(${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
+ IF(COMMAND EXECUTE_PROCESS AND ${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
EXECUTE_PROCESS(COMMAND ${CMAKE_TEST_MAKEPROGRAM} --version
RESULT_VARIABLE res OUTPUT_VARIABLE out
ERROR_QUIET
@@ -1022,7 +1022,7 @@ IF(BUILD_TESTING)
SET(MAKE_IS_GNU 1)
ENDIF("${out}" MATCHES "GNU")
ENDIF("${res}" EQUAL 0)
- ENDIF(${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
+ ENDIF(COMMAND EXECUTE_PROCESS AND ${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
# only add this test on platforms that support it
# some old versions of make simply cannot handle spaces in paths