BUG: Do not get in infinite loop when checking make tool version in cmake build tree.

This commit is contained in:
Brad King 2008-01-21 17:29:54 -05:00
parent 17dbc31ad4
commit 19d22f6105
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
SET(MAKE_IS_GNU )
IF(${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
EXEC_PROGRAM(
${CMAKE_TEST_MAKEPROGRAM} ARGS --version
${CMAKE_TEST_MAKEPROGRAM} ARGS --version no_such_target
RETURN_VALUE res OUTPUT_VARIABLE out
)
IF("${res}" EQUAL 0)