summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-07 12:21:31 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-08-07 12:21:31 (GMT)
commit7c9f0c664f5782c09c686b8e51fe50245463914b (patch)
tree09921f53bba86c34b62c0e75d23d0fbf5cc79d5a /Source/cmLocalVisualStudio7Generator.cxx
parentfc657ef4d34f3d2c509fcb5942553bfdf7b0db5b (diff)
parent2268c41a057d948ad6773c5145ee5bf6d19ea3bf (diff)
downloadCMake-7c9f0c664f5782c09c686b8e51fe50245463914b.zip
CMake-7c9f0c664f5782c09c686b8e51fe50245463914b.tar.gz
CMake-7c9f0c664f5782c09c686b8e51fe50245463914b.tar.bz2
Merge topic 'optimize-custom-command-dependencies'
2268c41 Optimize custom command full-path dependency lookup eccb39d VS 6,7: Refactor local generators to avoid GetSourceFileWithOutput
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index b7e30b3..58cc6f4 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -146,11 +146,10 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets()
force += "/";
force += tgt.GetName();
force += "_force";
- this->Makefile->AddCustomCommandToOutput(force.c_str(), no_depends,
- no_main_dependency,
- force_commands, " ", 0, true);
if(cmSourceFile* file =
- this->Makefile->GetSourceFileWithOutput(force.c_str()))
+ this->Makefile->AddCustomCommandToOutput(
+ force.c_str(), no_depends, no_main_dependency,
+ force_commands, " ", 0, true))
{
tgt.AddSourceFile(file);
}