diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-09 12:25:45 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-09 12:25:45 (GMT) |
commit | 7f11536704d9f971cf5c8b0a2b490ccc6af58588 (patch) | |
tree | 05b5b24050a629bf9ceb59d743f77ca909448229 /Source/cmMakefile.cxx | |
parent | 5af310502142252995ad5d74e66355be4094b7cc (diff) | |
download | CMake-7f11536704d9f971cf5c8b0a2b490ccc6af58588.zip CMake-7f11536704d9f971cf5c8b0a2b490ccc6af58588.tar.gz CMake-7f11536704d9f971cf5c8b0a2b490ccc6af58588.tar.bz2 |
ENH: now target names can be used in add_custom_command() and
add_custom_target() as COMMAND, and cmake will recognize them and replace
them with the actual output path of these executables. Also the dependency
will be added automatically. Test included.
ENH: moved TraceVSDependencies() to the end of GlobalGenerator::Configure(),
so it is done now in one central place
Alex
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index c1a65d7..4cc265f 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -578,18 +578,6 @@ cmMakefile::AddCustomCommandToTarget(const char* target, ti->second.GetPostBuildCommands().push_back(cc); break; } - - // Add dependencies on commands CMake knows how to build. - for(cmCustomCommandLines::const_iterator cli = commandLines.begin(); - cli != commandLines.end(); ++cli) - { - std::string cacheCommand = *cli->begin(); - if(const char* knownTarget = - this->GetCacheManager()->GetCacheValue(cacheCommand.c_str())) - { - ti->second.AddUtility(knownTarget); - } - } } } |