summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-01-16 14:38:49 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-01-16 18:56:30 (GMT)
commitba3a417dce45c6aa4f93d520ef0546b20f13fad9 (patch)
tree52c75b08a5df43722efac804dbe0fb93a38beda6 /Tests
parente23475dc730b0ced1ba36b0ae091afcf27b06435 (diff)
downloadCMake-ba3a417dce45c6aa4f93d520ef0546b20f13fad9.zip
CMake-ba3a417dce45c6aa4f93d520ef0546b20f13fad9.tar.gz
CMake-ba3a417dce45c6aa4f93d520ef0546b20f13fad9.tar.bz2
Tests/CustomCommand: add a test for depending on a `./path`
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index b784bc0..196fea3 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -558,3 +558,11 @@ add_custom_command(
)
add_custom_target(depends_on_in_source_path ALL DEPENDS "depends_on_in_source_path.txt")
+
+add_custom_command(
+ OUTPUT "depends_on_in_rel_source_path.txt"
+ COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/main.cxx" depends_on_in_rel_source_path.txt
+ DEPENDS ./main.cxx
+)
+
+add_custom_target(depends_on_in_rel_source_path ALL DEPENDS "depends_on_in_rel_source_path.txt")