summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeBuildTest.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-04 20:39:27 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-04 20:39:27 (GMT)
commit170febac528b8f18a6f1b6d8fcb5895d67a8c10b (patch)
tree40bc6b332a79f9022544214babee411ce6ab3041 /Tests/CMakeBuildTest.cmake.in
parentd35651fb6c59904b3b004474a5501280e694d37c (diff)
downloadCMake-170febac528b8f18a6f1b6d8fcb5895d67a8c10b.zip
CMake-170febac528b8f18a6f1b6d8fcb5895d67a8c10b.tar.gz
CMake-170febac528b8f18a6f1b6d8fcb5895d67a8c10b.tar.bz2
ENH: Cleanup cmake --build interface.
This cleans up the 'cmake --build' command-line interface: - Rename --clean to --clean-first to better describe it. - Replace --extra-options with a -- separator to simplify passing of multiple native build tool options. - Document the options in the main CMake man page description of the --build option, and shares this with the usage message. - Require --build to be the first argument when present. - Move implementation into cmakemain where it belongs.
Diffstat (limited to 'Tests/CMakeBuildTest.cmake.in')
-rw-r--r--Tests/CMakeBuildTest.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeBuildTest.cmake.in b/Tests/CMakeBuildTest.cmake.in
index ebba702..9c3002b 100644
--- a/Tests/CMakeBuildTest.cmake.in
+++ b/Tests/CMakeBuildTest.cmake.in
@@ -46,7 +46,7 @@ endif(RESULT)
# build it again with clean and only COnly target
execute_process(COMMAND "${CMAKE_COMMAND}"
--build "@CMAKE_BUILD_TEST_BINARY_DIR@" --config Debug
- --clean --target COnly
+ --clean-first --target COnly
RESULT_VARIABLE RESULT)
if(RESULT)
message(FATAL_ERROR "Error running cmake --build")