diff options
author | Sebastian Schuberth <sschuberth@gmail.com> | 2016-02-04 11:36:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-05 16:48:16 (GMT) |
commit | 497cad7c883dc401b4d78109c3a057fb38745d9e (patch) | |
tree | 8e8a1523e78ed5b586a6c3d3d1dec4e606dd8666 /Tests/RunCMake/CommandLine/BuildDir | |
parent | 886acd80f09c807fccbfcde713c53a7686386968 (diff) | |
download | CMake-497cad7c883dc401b4d78109c3a057fb38745d9e.zip CMake-497cad7c883dc401b4d78109c3a057fb38745d9e.tar.gz CMake-497cad7c883dc401b4d78109c3a057fb38745d9e.tar.bz2 |
cmake: Teach --build to reject multiple --target options
Previously we did not clearly document that `--target` is only supported
to be specified once. Even worse, specifying it multiple times would
silently ignore any previously specified targets and only build the last
target.
Update the documentation to specify this. Update the implementation to
reject multiple `--target` options to prevent user errors.
Diffstat (limited to 'Tests/RunCMake/CommandLine/BuildDir')
-rw-r--r-- | Tests/RunCMake/CommandLine/BuildDir/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/BuildDir/CMakeLists.txt b/Tests/RunCMake/CommandLine/BuildDir/CMakeLists.txt index 20df108..d2a2831 100644 --- a/Tests/RunCMake/CommandLine/BuildDir/CMakeLists.txt +++ b/Tests/RunCMake/CommandLine/BuildDir/CMakeLists.txt @@ -3,3 +3,5 @@ add_custom_command( COMMAND ${CMAKE_COMMAND} -E echo CustomCommand > output.txt ) add_custom_target(CustomTarget ALL DEPENDS output.txt) +add_custom_target(CustomTarget2 ALL DEPENDS output.txt) +add_custom_target(CustomTarget3 ALL DEPENDS output.txt) |