ENH: Improved error message when a wrong generator is selected.

This commit is contained in:
Brad King 2003-05-13 14:26:16 -04:00
parent 32ca9c83cd
commit a30148e640
1 changed files with 6 additions and 1 deletions

View File

@ -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");