mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
ENH: only add the test for some platforms
This commit is contained in:
parent
d5cb0f48b7
commit
4ddfe5f9a4
@ -1013,18 +1013,23 @@ IF(BUILD_TESTING)
|
||||
ENDIF(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
|
||||
|
||||
|
||||
ADD_TEST(SubDirSpaces ${CMAKE_CTEST_COMMAND}
|
||||
--build-and-test
|
||||
"${CMake_SOURCE_DIR}/Tests/SubDirSpaces"
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces"
|
||||
--build-exe-dir "${CMake_BINARY_DIR}/Tests/SubDirSpaces/Executable Sources"
|
||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
||||
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
||||
--build-project SUBDIR
|
||||
--test-command test
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/ShouldBeHere"
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/testfromsubdir.obj"
|
||||
)
|
||||
# only add this test on platforms that support it
|
||||
# some old versions of make simply cannot handle spaces in paths
|
||||
IF (${CMAKE_TEST_MAKEPROGRAM} MATCHES "nmake|gmake|wmake")
|
||||
ADD_TEST(SubDirSpaces ${CMAKE_CTEST_COMMAND}
|
||||
--build-and-test
|
||||
"${CMake_SOURCE_DIR}/Tests/SubDirSpaces"
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces"
|
||||
--build-exe-dir
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/Executable Sources"
|
||||
--build-generator ${CMAKE_TEST_GENERATOR}
|
||||
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
||||
--build-project SUBDIR
|
||||
--test-command test
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/ShouldBeHere"
|
||||
"${CMake_BINARY_DIR}/Tests/SubDirSpaces/testfromsubdir.obj"
|
||||
)
|
||||
ENDIF (${CMAKE_TEST_MAKEPROGRAM} MATCHES "nmake|gmake|wmake")
|
||||
|
||||
IF (WIN32)
|
||||
ADD_TEST(SubDir ${CMAKE_CTEST_COMMAND}
|
||||
|
Loading…
Reference in New Issue
Block a user