summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-08-03 19:47:19 (GMT)
committerBrad King <brad.king@kitware.com>2001-08-03 19:47:19 (GMT)
commit9cce8359001491aea51ce2effa817fdf5571c4d6 (patch)
treee9ba2ede118846552172a4d882aa9e3c20986f84 /Source/cmConfigureFileCommand.h
parentd76f84f70e89a2161d691142a458b403fe4a20af (diff)
downloadCMake-9cce8359001491aea51ce2effa817fdf5571c4d6.zip
CMake-9cce8359001491aea51ce2effa817fdf5571c4d6.tar.gz
CMake-9cce8359001491aea51ce2effa817fdf5571c4d6.tar.bz2
ENH: Added 'IMMEDIATE' option to CONFIGURE_FILE command to force file copy and configuration on the initial pass so that current variable values are used.
Diffstat (limited to 'Source/cmConfigureFileCommand.h')
-rw-r--r--Source/cmConfigureFileCommand.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h
index bc6390b..ab624b0 100644
--- a/Source/cmConfigureFileCommand.h
+++ b/Source/cmConfigureFileCommand.h
@@ -77,26 +77,28 @@ public:
virtual const char* GetFullDocumentation()
{
return
- "CONFIGURE_FILE(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES])\n"
+ "CONFIGURE_FILE(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [IMMEDIATE])\n"
"The Input and Ouput files have to have full paths.\n"
"They can also use variables like CMAKE_BINARY_DIR,CMAKE_SOURCE_DIR. "
"This command replaces any variables in the input file with their "
"values as determined by CMake. If a variables in not defined, it "
"will be replaced with nothing. If COPYONLY is passed in, then "
"then no varible expansion will take place. If ESCAPE_QUOTES is "
- "passed in then any substitued quotes will be C style escaped.";
+ "passed in then any substitued quotes will be C style escaped. "
+ "If IMMEDIATE is specified, then the file will be configured with "
+ "the current values of CMake variables instead of waiting until the "
+ "end of CMakeLists processing.";
}
- /**
- * Create the header files in this pass. This is so
- * all varibles can be expaned.
- */
virtual void FinalPass();
private:
+ void ConfigureFile();
+
std::string m_InputFile;
std::string m_OuputFile;
bool m_CopyOnly;
bool m_EscapeQuotes;
+ bool m_Immediate;
};