diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-22 15:05:50 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-22 15:05:50 (GMT) |
commit | 13bd83c9537fa6712b0a1e4c10e6a5c33e5be0ae (patch) | |
tree | cdbd3ea8f334083333e91b486ce56addec340d9d /Source/CMakeLists.txt | |
parent | 2d6e914b2d22b63f48379eca97fcc822834e3c3a (diff) | |
download | CMake-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.txt | 4 |
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 |