Use makefile->IssueMessage() for better error messages
Alex
This commit is contained in:
parent
c886e312bb
commit
f15945edad
@ -23,7 +23,7 @@ bool cmTryCompileCommand
|
|||||||
if(this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
|
if(this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
|
||||||
cmake::FIND_PACKAGE_MODE)
|
cmake::FIND_PACKAGE_MODE)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error(
|
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
|
||||||
"The TRY_COMPILE() command is not supported in --find-package mode.");
|
"The TRY_COMPILE() command is not supported in --find-package mode.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ bool cmTryRunCommand
|
|||||||
if(this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
|
if(this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
|
||||||
cmake::FIND_PACKAGE_MODE)
|
cmake::FIND_PACKAGE_MODE)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error(
|
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
|
||||||
"The TRY_RUN() command is not supported in --find-package mode.");
|
"The TRY_RUN() command is not supported in --find-package mode.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user