diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-09 19:40:31 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-09 19:40:31 (GMT) |
commit | a91947039a025df00403be2cadba469346f274a8 (patch) | |
tree | 67f7cfbde67246ac19514b692d966c71b75083a1 /Source/cmTarget.cxx | |
parent | aa9734ab6ceab283c83615ea52644ff730651dbc (diff) | |
download | CMake-a91947039a025df00403be2cadba469346f274a8.zip CMake-a91947039a025df00403be2cadba469346f274a8.tar.gz CMake-a91947039a025df00403be2cadba469346f274a8.tar.bz2 |
ENH: for all custom commands that can not be given to a target, add them to all targets in the current makefile
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 61f5482..3480794 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -192,6 +192,16 @@ void cmTarget::TraceVSDependencies(std::string projFile, // finished with this SF move to the next srcFilesToProcess.pop(); } + // mark all custom commands in the targets list of source files as used. + for(std::vector<cmSourceFile*>::iterator i = m_SourceFiles.begin(); + i != m_SourceFiles.end(); ++i) + { + cmCustomCommand* cc = (*i)->GetCustomCommand(); + if(cc) + { + cc->Used(); + } + } } void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf) |