diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-30 19:05:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-30 19:05:07 (GMT) |
commit | 091e95f26dba82131de135dce5b14a937b68d92c (patch) | |
tree | 891d48d0b4741c87bcbdf86bcc0f18f9ad875974 /Source/cmConfigureFileCommand.h | |
parent | bc34c428dfbfaf9164a2ba899d6d2b350777c1a9 (diff) | |
download | CMake-091e95f26dba82131de135dce5b14a937b68d92c.zip CMake-091e95f26dba82131de135dce5b14a937b68d92c.tar.gz CMake-091e95f26dba82131de135dce5b14a937b68d92c.tar.bz2 |
ENH: add an option to configure file command that allows for only expansion of at variables and not dollar variables
Diffstat (limited to 'Source/cmConfigureFileCommand.h')
-rw-r--r-- | Source/cmConfigureFileCommand.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h index b052ffa..3f7befc 100644 --- a/Source/cmConfigureFileCommand.h +++ b/Source/cmConfigureFileCommand.h @@ -77,7 +77,7 @@ public: virtual const char* GetFullDocumentation() { return - "CONFIGURE_FILE(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [IMMEDIATE])\n" + "CONFIGURE_FILE(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [IMMEDIATE] [@ONLY])\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 " @@ -87,7 +87,9 @@ public: "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."; + "end of CMakeLists processing. If @ONLY is present, only variables " + "of the form @var@ will be replaces and ${var} will be ignored. " + "This is useful for configuring tcl scripts that use ${var}."; } virtual void FinalPass(); @@ -99,6 +101,7 @@ private: bool m_CopyOnly; bool m_EscapeQuotes; bool m_Immediate; + bool m_AtOnly; }; |