summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2008-03-06 20:08:03 (GMT)
committerKen Martin <ken.martin@kitware.com>2008-03-06 20:08:03 (GMT)
commit5588ed47fce7071b568914ceb0c4cfedb35195b7 (patch)
treebf95919b26014eacf1560d9d7116ff36fbcf9eec /Source/cmConfigureFileCommand.cxx
parent385377cf1cca1d3cd9b1d3e318f43f0becf531cc (diff)
downloadCMake-5588ed47fce7071b568914ceb0c4cfedb35195b7.zip
CMake-5588ed47fce7071b568914ceb0c4cfedb35195b7.tar.gz
CMake-5588ed47fce7071b568914ceb0c4cfedb35195b7.tar.bz2
BUG: change in handling of cmake_minimum_required
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r--Source/cmConfigureFileCommand.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index 2a8d3a4..d768886 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -47,10 +47,21 @@ bool cmConfigureFileCommand
const char* versionValue
= this->Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
if (versionValue && atof(versionValue) > 2.0)
- {
+ {
this->Immediate = true;
- }
+ }
+ switch (this->Makefile->GetPolicyStatus(cmPolicies::CMP_0003))
+ {
+ case cmPolicies::WARN:
+ case cmPolicies::OLD:
+ break;
+ case cmPolicies::NEW:
+ case cmPolicies::REQUIRED_IF_USED:
+ case cmPolicies::REQUIRED_ALWAYS:
+ this->Immediate = true;
+ }
+
this->AtOnly = false;
for(unsigned int i=2;i < args.size();++i)