ENH: better error message for mis-configured nmake environment
This commit is contained in:
parent
9430c3f335
commit
9210fef65b
|
@ -25,7 +25,14 @@ bool cmEnableLanguageCommand
|
||||||
if(args.size() < 1 )
|
if(args.size() < 1 )
|
||||||
{
|
{
|
||||||
this->SetError
|
this->SetError
|
||||||
("ENABLE_LANGUAGE called with incorrect number of arguments");
|
("called with incorrect number of arguments");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(this->Makefile->GetCMakeInstance()->GetIsInTryCompile())
|
||||||
|
{
|
||||||
|
this->SetError
|
||||||
|
("called from a try_compile, "
|
||||||
|
"all languages must be enabled before trying them.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (std::vector<std::string>::const_iterator it = args.begin();
|
for (std::vector<std::string>::const_iterator it = args.begin();
|
||||||
|
|
Loading…
Reference in New Issue