From f15945edad8aba724b80914cf3b50f5cc9f5a021 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Tue, 27 Sep 2011 18:59:42 +0200 Subject: Use makefile->IssueMessage() for better error messages Alex --- Source/cmTryCompileCommand.cxx | 2 +- Source/cmTryRunCommand.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index 546e42f..12ce015 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -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; } diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index 9044cf8..4fc0b13 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -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; } -- cgit v0.12