From a30148e640035b3cf03c9b6deded931eda5c1eb0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 13 May 2003 14:26:16 -0400 Subject: ENH: Improved error message when a wrong generator is selected. --- Source/cmGlobalGenerator.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"); -- cgit v0.12