summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-14 19:38:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-12-14 19:38:48 (GMT)
commitf7036a1603fadcb500a5522cc397cd3b884e6e21 (patch)
tree81dc9efef56f5f0818512f723170f170fc539d7a /Tests
parent8e7f0488b47458775a162ed031b8635e043978ad (diff)
parentced1d5eccd4ae08a6431a5c163be3dd52ca9d59a (diff)
downloadCMake-f7036a1603fadcb500a5522cc397cd3b884e6e21.zip
CMake-f7036a1603fadcb500a5522cc397cd3b884e6e21.tar.gz
CMake-f7036a1603fadcb500a5522cc397cd3b884e6e21.tar.bz2
Merge topic 'custom-command-depend'
ced1d5e Skip file-level dependencies on custom targets (#11332) e30a775 Improve signature of cmLocalGenerator::GetRealDependency
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 76208d4..746c9a7 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -130,6 +130,7 @@ ADD_CUSTOM_COMMAND(
################################################################
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/foo.pre
DEPENDS ${PROJECT_SOURCE_DIR}/foo.in
+ TDocument # Ensure doc1.h generates before this target
COMMAND ${CMAKE_COMMAND}
ARGS -E copy ${PROJECT_SOURCE_DIR}/foo.in
${PROJECT_BINARY_DIR}/foo.pre
@@ -181,10 +182,6 @@ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/generated.c
TARGET_LINK_LIBRARIES(CustomCommand GeneratedHeader)
-# must add a dependency on TDocument otherwise it might never build and
-# the CustomCommand executable really needs doc1.h
-ADD_DEPENDENCIES(CustomCommand TDocument)
-
##############################################################################
# Test for using just the target name as executable in the COMMAND
# section. Has to be recognized and replaced by CMake with the output