summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-09-27 16:59:42 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-09-27 16:59:42 (GMT)
commitf15945edad8aba724b80914cf3b50f5cc9f5a021 (patch)
tree682f145189fc8540164a602ad5303c721b03698b /Source/cmTryCompileCommand.cxx
parentc886e312bbd6e26f049215c8bcc821d9597fed8c (diff)
downloadCMake-f15945edad8aba724b80914cf3b50f5cc9f5a021.zip
CMake-f15945edad8aba724b80914cf3b50f5cc9f5a021.tar.gz
CMake-f15945edad8aba724b80914cf3b50f5cc9f5a021.tar.bz2
Use makefile->IssueMessage() for better error messages
Alex
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx2
1 files changed, 1 insertions, 1 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;
}