diff options
author | Brad King <brad.king@kitware.com> | 2007-03-08 18:13:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-08 18:13:58 (GMT) |
commit | 1d75e47dee360593e7ad48a87af261b45e8a2968 (patch) | |
tree | 638f4727a75bfbe5b4deb9003f4843eccb761bd6 | |
parent | fd3688fa7260e06c9bd8e23bb6f08e430bff4301 (diff) | |
download | CMake-1d75e47dee360593e7ad48a87af261b45e8a2968.zip CMake-1d75e47dee360593e7ad48a87af261b45e8a2968.tar.gz CMake-1d75e47dee360593e7ad48a87af261b45e8a2968.tar.bz2 |
ENH: Enable SubDirSpaces test when building with bootstrapped cmake.
-rw-r--r-- | Source/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index c96e360..4051da5 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -996,17 +996,17 @@ IF(BUILD_TESTING) ) ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR) SET(MAKE_IS_GNU ) - 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 + IF(${CMAKE_TEST_MAKEPROGRAM} MATCHES make) + EXEC_PROGRAM( + ${CMAKE_TEST_MAKEPROGRAM} ARGS --version + RETURN_VALUE res OUTPUT_VARIABLE out ) IF("${res}" EQUAL 0) IF("${out}" MATCHES "GNU") SET(MAKE_IS_GNU 1) ENDIF("${out}" MATCHES "GNU") ENDIF("${res}" EQUAL 0) - ENDIF(COMMAND EXECUTE_PROCESS AND ${CMAKE_TEST_MAKEPROGRAM} MATCHES make) + ENDIF(${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 |