Tests: Teach MakeClean to use "cmake --build"

Switch from "ctest --build-and-test" to "cmake --build" to drive the
clean target in the MakeClean test.
This commit is contained in:
Brad King 2013-11-14 15:15:17 -05:00
parent c85672634c
commit 95b28eb763
1 changed files with 2 additions and 9 deletions

View File

@ -44,14 +44,7 @@ add_executable(check_clean ${MakeClean_BINARY_DIR}/check_clean.c)
add_custom_command(
TARGET check_clean
POST_BUILD
COMMAND ${CMAKE_CTEST_COMMAND}
ARGS --build-and-test
${MakeClean_SOURCE_DIR}/ToClean
${MakeClean_BINARY_DIR}/ToClean
--build-generator ${CMAKE_GENERATOR}
--build-project ToClean
--build-makeprogram ${CMAKE_MAKE_PROGRAM}
--build-noclean
--build-target clean
COMMAND ${CMAKE_COMMAND} --build ${MakeClean_BINARY_DIR}/ToClean
--target clean
COMMENT "Clean the ToClean Project"
)