summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-20 14:36:26 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-20 14:37:27 (GMT)
commit2d3aa94225e259c9bc1c0d469e6326b476d225c1 (patch)
treeb88191eb67c139f7a75cb74bfc517962d5c4f6eb /Source/cmGlobalVisualStudio7Generator.cxx
parent7aa9961939f99c915485d86e460b9941f949d59c (diff)
downloadCMake-2d3aa94225e259c9bc1c0d469e6326b476d225c1.zip
CMake-2d3aa94225e259c9bc1c0d469e6326b476d225c1.tar.gz
CMake-2d3aa94225e259c9bc1c0d469e6326b476d225c1.tar.bz2
cmGlobalGenerator: Allow FindMakeProgram to fail
Revise its signature to return `bool` so that it can fail and abort configuration early.
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 51cb315..773f8a0 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -123,11 +123,14 @@ void cmGlobalVisualStudio7Generator::EnableLanguage(
}
}
-void cmGlobalVisualStudio7Generator::FindMakeProgram(cmMakefile* mf)
+bool cmGlobalVisualStudio7Generator::FindMakeProgram(cmMakefile* mf)
{
- this->cmGlobalVisualStudioGenerator::FindMakeProgram(mf);
+ if (!this->cmGlobalVisualStudioGenerator::FindMakeProgram(mf)) {
+ return false;
+ }
mf->AddDefinition("CMAKE_VS_DEVENV_COMMAND",
this->GetDevEnvCommand().c_str());
+ return true;
}
std::string const& cmGlobalVisualStudio7Generator::GetDevEnvCommand()