ENH: Improved error message when a wrong generator is selected.
This commit is contained in:
parent
32ca9c83cd
commit
a30148e640
|
@ -57,7 +57,12 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
|
||||||
if(!mf->GetDefinition("CMAKE_MAKE_PROGRAM")
|
if(!mf->GetDefinition("CMAKE_MAKE_PROGRAM")
|
||||||
|| cmSystemTools::IsOff(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;
|
return;
|
||||||
}
|
}
|
||||||
std::string makeProgram = mf->GetDefinition("CMAKE_MAKE_PROGRAM");
|
std::string makeProgram = mf->GetDefinition("CMAKE_MAKE_PROGRAM");
|
||||||
|
|
Loading…
Reference in New Issue