summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-13 13:33:38 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-13 13:33:38 (GMT)
commitc9cc368a9db33273ad6287ea94fc285e90c4901f (patch)
tree623eb51c417be94e185d51672e65f46be10f1a02 /Source/cmConfigureFileCommand.cxx
parent4391edcdd4124a5e11eea64901dbe7aaa803b4e5 (diff)
downloadCMake-c9cc368a9db33273ad6287ea94fc285e90c4901f.zip
CMake-c9cc368a9db33273ad6287ea94fc285e90c4901f.tar.gz
CMake-c9cc368a9db33273ad6287ea94fc285e90c4901f.tar.bz2
ENH: made configure file immediate by default for 2.2 or later
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r--Source/cmConfigureFileCommand.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index fa7d52d..e4e1fcb 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -30,7 +30,19 @@ bool cmConfigureFileCommand::InitialPass(std::vector<std::string> const& args)
m_OuputFile = args[1];
m_CopyOnly = false;
m_EscapeQuotes = false;
+
+
+ // for CMake 2.0 and earlier CONFIGURE_FILE defaults to the FinalPass,
+ // after 2.0 it only does InitialPass
m_Immediate = false;
+ const char* versionValue
+ = m_Makefile->GetRequiredDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
+ if (atof(versionValue) > 2.0)
+ {
+ m_Immediate = true;
+ }
+
+
m_AtOnly = false;
for(unsigned int i=2;i < args.size();++i)
{