mirror of
https://github.com/reactos/CMake.git
synced 2025-02-04 02:47:29 +00:00
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")
|
||||
|| 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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user