diff options
author | Brad King <brad.king@kitware.com> | 2011-05-19 12:11:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-19 11:38:06 (GMT) |
commit | 7039d1fd9b817a3ab6c81b4ef313a0bd6e19778d (patch) | |
tree | 99fd1835f9717980e5a4953ea0c9a52160e52e65 /Tests/CMakeLists.txt | |
parent | 4268e3d7e92eee0871dac1b92f64e18c374c7b43 (diff) | |
download | CMake-7039d1fd9b817a3ab6c81b4ef313a0bd6e19778d.zip CMake-7039d1fd9b817a3ab6c81b4ef313a0bd6e19778d.tar.gz CMake-7039d1fd9b817a3ab6c81b4ef313a0bd6e19778d.tar.bz2 |
Fix CompileCommandOutput test for Make tools not supporting spaces
Use underscores instead of spaces for such Make tools.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 2344af7..e9aed16 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -11,6 +11,7 @@ MACRO(ADD_TEST_MACRO NAME COMMAND) --build-generator ${CMAKE_TEST_GENERATOR} --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} --build-project ${proj} + ${${NAME}_EXTRA_OPTIONS} --test-command ${COMMAND} ${ARGN}) LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/${dir}") ENDMACRO(ADD_TEST_MACRO) @@ -2037,6 +2038,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/ ENDFOREACH() IF(TEST_CompileCommandOutput) + SET(CompileCommandOutput_EXTRA_OPTIONS + --build-options -DMAKE_SUPPORTS_SPACES=${MAKE_IS_GNU}) ADD_TEST_MACRO(CompileCommandOutput "${CMake_BINARY_DIR}/Tests/CMakeLib/runcompilecommands") ENDIF() |