summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-23 17:27:00 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-23 17:27:00 (GMT)
commitc288da754a3f1221ca4ebfd9c9efb8c935d499d6 (patch)
tree998d24826c3e2e32158b8255d5c1c8715139761c /Source/cmTarget.h
parent702d785c9ae49015a770530a9c5f27e7bfaff716 (diff)
downloadCMake-c288da754a3f1221ca4ebfd9c9efb8c935d499d6.zip
CMake-c288da754a3f1221ca4ebfd9c9efb8c935d499d6.tar.gz
CMake-c288da754a3f1221ca4ebfd9c9efb8c935d499d6.tar.bz2
BUG: Target names in the COMMAND part of a custom command should not create a file-level dependency that forces the command to rerun when the executable target rebuilds, but the target-level dependency should still be created. Target names in a DEPENDS should do both a target-level and file-level dependency. Updated the BuildDepends test to check that this works.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 4161b35..8bb8f9b 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -296,9 +296,10 @@ private:
const LibraryID& dep);
/*
- * Checks the prebuild, prelink and postbuild custom commands for known
- * targets and adds them to the dependencies.
+ * Check custom commands for known targets and add a target-level
+ * dependency.
*/
+ void CheckForTargetsAsCommand(const cmCustomCommand& cc);
void CheckForTargetsAsCommand(const std::vector<cmCustomCommand>& commands);