Use makefile->IssueMessage() for better error messages

Alex
This commit is contained in:
Alex Neundorf 2011-09-27 18:59:42 +02:00
parent c886e312bb
commit f15945edad
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ bool cmTryCompileCommand
if(this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
cmake::FIND_PACKAGE_MODE)
{
cmSystemTools::Error(
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
"The TRY_COMPILE() command is not supported in --find-package mode.");
return false;
}

View File

@ -25,7 +25,7 @@ bool cmTryRunCommand
if(this->Makefile->GetCMakeInstance()->GetWorkingMode() ==
cmake::FIND_PACKAGE_MODE)
{
cmSystemTools::Error(
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
"The TRY_RUN() command is not supported in --find-package mode.");
return false;
}