mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 12:16:40 +08:00
ENH: add an option to configure file command that allows for only expansion of at variables and not dollar variables
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user