diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2018-09-06 14:13:39 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2018-09-15 15:25:47 (GMT) |
commit | a10d63d5783275f9972aaa86d41071a1ddca7921 (patch) | |
tree | f1791bda0cccaaec3cd53e19e3e82cf68b44e197 /Tests/RunCMake/CommandLine/ExplicitDirs/CMakeLists.txt | |
parent | 6d2a2fe66027b6eeb2817a8e667894ad2e233d03 (diff) | |
download | CMake-a10d63d5783275f9972aaa86d41071a1ddca7921.zip CMake-a10d63d5783275f9972aaa86d41071a1ddca7921.tar.gz CMake-a10d63d5783275f9972aaa86d41071a1ddca7921.tar.bz2 |
cmake: -S and -B can be used to specify source and build directories
Document the previously internal option of '-B' and provide a
matching source directory option with '-S'. Both '-B', and '-S'
can be used independently of each other.
Diffstat (limited to 'Tests/RunCMake/CommandLine/ExplicitDirs/CMakeLists.txt')
-rw-r--r-- | Tests/RunCMake/CommandLine/ExplicitDirs/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/ExplicitDirs/CMakeLists.txt b/Tests/RunCMake/CommandLine/ExplicitDirs/CMakeLists.txt new file mode 100644 index 0000000..0ca5a0a --- /dev/null +++ b/Tests/RunCMake/CommandLine/ExplicitDirs/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) +add_custom_command( + OUTPUT output.txt + 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) |