diff options
author | Brad King <brad.king@kitware.com> | 2003-05-13 18:26:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-05-13 18:26:16 (GMT) |
commit | a30148e640035b3cf03c9b6deded931eda5c1eb0 (patch) | |
tree | 28a50a3d0e1c42a6cbcbb1ff8fbfdf805380973b /Source/cmGlobalGenerator.cxx | |
parent | 32ca9c83cdfa5be744de3983f00637533f2189c8 (diff) | |
download | CMake-a30148e640035b3cf03c9b6deded931eda5c1eb0.zip CMake-a30148e640035b3cf03c9b6deded931eda5c1eb0.tar.gz CMake-a30148e640035b3cf03c9b6deded931eda5c1eb0.tar.bz2 |
ENH: Improved error message when a wrong generator is selected.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 7 |
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"); |