summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 581953c..5589333 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -57,7 +57,12 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
if(!mf->GetDefinition("CMAKE_MAKE_PROGRAM")
|| cmSystemTools::IsOff(mf->GetDefinition("CMAKE_MAKE_PROGRAM")))
{
- cmSystemTools::Error("EnableLanguage was unable to find a CMAKE_MAKE_PROGRAM");
+ cmSystemTools::Error("CMake was unable to find a build program "
+ "corresponding to the generator you have selected. "
+ "CMAKE_MAKE_PROGRAM is not set. You probably "
+ "need to re-run CMake and select a different "
+ "generator.");
+ cmSystemTools::SetFatalErrorOccured();
return;
}
std::string makeProgram = mf->GetDefinition("CMAKE_MAKE_PROGRAM");