ENH: Enable SubDirSpaces test when building with bootstrapped cmake.
This commit is contained in:
parent
fd3688fa72
commit
1d75e47dee
|
@ -996,17 +996,17 @@ IF(BUILD_TESTING)
|
||||||
)
|
)
|
||||||
ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
||||||
SET(MAKE_IS_GNU )
|
SET(MAKE_IS_GNU )
|
||||||
IF(COMMAND EXECUTE_PROCESS AND ${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
|
IF(${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
|
||||||
EXECUTE_PROCESS(COMMAND ${CMAKE_TEST_MAKEPROGRAM} --version
|
EXEC_PROGRAM(
|
||||||
RESULT_VARIABLE res OUTPUT_VARIABLE out
|
${CMAKE_TEST_MAKEPROGRAM} ARGS --version
|
||||||
ERROR_QUIET
|
RETURN_VALUE res OUTPUT_VARIABLE out
|
||||||
)
|
)
|
||||||
IF("${res}" EQUAL 0)
|
IF("${res}" EQUAL 0)
|
||||||
IF("${out}" MATCHES "GNU")
|
IF("${out}" MATCHES "GNU")
|
||||||
SET(MAKE_IS_GNU 1)
|
SET(MAKE_IS_GNU 1)
|
||||||
ENDIF("${out}" MATCHES "GNU")
|
ENDIF("${out}" MATCHES "GNU")
|
||||||
ENDIF("${res}" EQUAL 0)
|
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
|
# only add this test on platforms that support it
|
||||||
# some old versions of make simply cannot handle spaces in paths
|
# some old versions of make simply cannot handle spaces in paths
|
||||||
|
|
Loading…
Reference in New Issue