From ba3a417dce45c6aa4f93d520ef0546b20f13fad9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 16 Jan 2020 09:38:49 -0500 Subject: Tests/CustomCommand: add a test for depending on a `./path` --- Tests/CustomCommand/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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") -- cgit v0.12