mirror of
https://github.com/reactos/CMake.git
synced 2025-01-31 17:12:49 +00:00
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() ==
|
||||
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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user