summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-06 14:17:37 (GMT)
committerBrad King <brad.king@kitware.com>2013-08-06 14:20:03 (GMT)
commiteccb39d7f44f97d395b75b985b4e18178b72df8c (patch)
treef2d029aad3b4d3bf93bbaa3ea5aee3742e9e326e /Source/cmLocalVisualStudio7Generator.cxx
parent87e0e6e497b76f4ab7292cca34bd7c006832723b (diff)
downloadCMake-eccb39d7f44f97d395b75b985b4e18178b72df8c.zip
CMake-eccb39d7f44f97d395b75b985b4e18178b72df8c.tar.gz
CMake-eccb39d7f44f97d395b75b985b4e18178b72df8c.tar.bz2
VS 6,7: Refactor local generators to avoid GetSourceFileWithOutput
Use the cmSourceFile returned by AddCustomCommandToOutput instead of throwing out the return value and looking it up with 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 672edf4..2bb5ad0 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);
}