summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-11 14:29:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-11 14:29:56 (GMT)
commitdc9245df6cbe4ed6211387f6090b531ce4414263 (patch)
treeb22a893cd7b52a64a86663c0e164e1d63ec9119f /Source/cmPolicies.cxx
parent9d4730f4413a216e8172aa4a24705a388d36f076 (diff)
downloadCMake-dc9245df6cbe4ed6211387f6090b531ce4414263.zip
CMake-dc9245df6cbe4ed6211387f6090b531ce4414263.tar.gz
CMake-dc9245df6cbe4ed6211387f6090b531ce4414263.tar.bz2
ENH: add enum to IssueMessage
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 647d6d4..cdb39e0 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -202,8 +202,8 @@ bool cmPolicies::ApplyPolicyVersion(cmMakefile *mf,
// it is an error if the policy version is less than 2.4
if (majorVer < 2 || majorVer == 2 && minorVer < 4)
- {
- mf->IssueError(
+ {
+ mf->IssueMessage(cmake::FATAL_ERROR,
"An attempt was made to set the policy version of CMake to something "
"earlier than \"2.4\". "
"In CMake 2.4 and below backwards compatibility was handled with the "
@@ -213,7 +213,7 @@ bool cmPolicies::ApplyPolicyVersion(cmMakefile *mf,
"CMAKE_BACKWARDS_COMPATIBILITY variable. "
"One way to so this is to set the policy version to 2.4 exactly."
);
- }
+ }
// now loop over all the policies and set them as appropriate
std::map<cmPolicies::PolicyID,cmPolicy *>::iterator i