summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-12-01 19:03:24 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-12-01 19:03:24 (GMT)
commit97142c76038606a1111918c1b5585d8e9caf1336 (patch)
tree2914beb70ceb4bfcde7525c4c8dcca8f22dfa54e /Source/cmConfigureFileCommand.h
parent333fd1131c539e60a8da6ad1e8516009eabf11c2 (diff)
parentac2e45d0893dd283c04c600e626bf80ea57d4a71 (diff)
downloadCMake-97142c76038606a1111918c1b5585d8e9caf1336.zip
CMake-97142c76038606a1111918c1b5585d8e9caf1336.tar.gz
CMake-97142c76038606a1111918c1b5585d8e9caf1336.tar.bz2
Merge topic 'newline-style'
ac2e45d Provide std::ios_base typedef on GCC < 3 28c46ca cmNewLineStyle: Use cmStandardIncludes.h 75e83e9 cmNewLineStyle: Remove trailing comma in enum be6502c bootstrap: Include cmNewLineStyle in build a087490 Add NEWLINE_STYLE option to configure_file (#3957)
Diffstat (limited to 'Source/cmConfigureFileCommand.h')
-rw-r--r--Source/cmConfigureFileCommand.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h
index 844a23c..be33569 100644
--- a/Source/cmConfigureFileCommand.h
+++ b/Source/cmConfigureFileCommand.h
@@ -56,7 +56,8 @@ public:
{
return
" configure_file(<input> <output>\n"
- " [COPYONLY] [ESCAPE_QUOTES] [@ONLY])\n"
+ " [COPYONLY] [ESCAPE_QUOTES] [@ONLY] \n"
+ " [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])\n"
"Copies a file <input> to file <output> and substitutes variable "
"values referenced in the file content. "
"If <input> is a relative path it is evaluated with respect to "
@@ -81,14 +82,20 @@ public:
"either #define VAR or /* #undef VAR */ depending on "
"the setting of VAR in CMake. Any occurrences of #cmakedefine01 VAR "
"will be replaced with either #define VAR 1 or #define VAR 0 "
- "depending on whether VAR evaluates to TRUE or FALSE in CMake";
+ "depending on whether VAR evaluates to TRUE or FALSE in CMake.\n"
+ "With NEWLINE_STYLE the line ending could be adjusted: \n"
+ " 'UNIX' or 'LF' for \\n, 'DOS', 'WIN32' or 'CRLF' for \\r\\n.\n"
+ "COPYONLY must not be used with NEWLINE_STYLE.\n";
}
virtual void FinalPass();
virtual bool HasFinalPass() const { return !this->Immediate; }
+
private:
int ConfigureFile();
+ cmNewLineStyle NewLineStyle;
+
std::string InputFile;
std::string OutputFile;
bool CopyOnly;