diff options
author | Ken Martin <ken.martin@kitware.com> | 2008-03-06 15:57:59 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2008-03-06 15:57:59 (GMT) |
commit | adddcea5d7e52d4ef0522a2dbefa3d952f1da333 (patch) | |
tree | 922dceb2f4c400e2d0a1dfed6c799f828a553f10 /Source/cmConfigureFileCommand.cxx | |
parent | ea525a4fb4d04dcaaf074544126db9b700e38457 (diff) | |
download | CMake-adddcea5d7e52d4ef0522a2dbefa3d952f1da333.zip CMake-adddcea5d7e52d4ef0522a2dbefa3d952f1da333.tar.gz CMake-adddcea5d7e52d4ef0522a2dbefa3d952f1da333.tar.bz2 |
BUG: change the handling of CMAKE_MINIMUM_REQUIRED and BACKWARDS_COMPATIBILITY and extend the documentaiton quite a bit
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r-- | Source/cmConfigureFileCommand.cxx | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx index f2ce3da..2a8d3a4 100644 --- a/Source/cmConfigureFileCommand.cxx +++ b/Source/cmConfigureFileCommand.cxx @@ -42,19 +42,15 @@ bool cmConfigureFileCommand // for CMake 2.0 and earlier CONFIGURE_FILE defaults to the FinalPass, - // after 2.0 it only does InitialPass, this is policy CMP_0003 - switch (this->Makefile->GetPolicyStatus(cmPolicies::CMP_0003)) - { - case cmPolicies::WARN: - cmSystemTools::Message( - this->Makefile->GetPolicies()->GetPolicyWarning - (cmPolicies::CMP_0003).c_str(),"Warning"); - case cmPolicies::OLD: - this->Immediate = false; - break; - default: - this->Immediate = true; - } + // after 2.0 it only does InitialPass + this->Immediate = false; + const char* versionValue + = this->Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); + if (versionValue && atof(versionValue) > 2.0) + { + this->Immediate = true; + } + this->AtOnly = false; for(unsigned int i=2;i < args.size();++i) |