summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-09 12:38:21 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-09 13:17:59 (GMT)
commit3ef776fc38fecff332e568f307dcf4e6f82fbe14 (patch)
tree94031cb0cec298c60c2e3302c87440127d43f506 /Source/cmConfigureFileCommand.cxx
parent99575c9ac114e6f5d388e1ee7b9a3f788d773c9e (diff)
downloadCMake-3ef776fc38fecff332e568f307dcf4e6f82fbe14.zip
CMake-3ef776fc38fecff332e568f307dcf4e6f82fbe14.tar.gz
CMake-3ef776fc38fecff332e568f307dcf4e6f82fbe14.tar.bz2
configure_file: Do not warn about newline style arguments
The unknown argument warning added by commit v3.2.0-rc1~452^2 (configure_file: Warn about unknown arguments, 2014-10-31) failed to account for options handled by the NewLineStyle member instead of directly in the main loop. Simply whitelist them for now.
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-rw-r--r--Source/cmConfigureFileCommand.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index fa7f486..6876388 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -100,6 +100,13 @@ bool cmConfigureFileCommand
{
/* Ignore legacy option. */
}
+ else if(args[i] == "NEWLINE_STYLE" ||
+ args[i] == "LF" || args[i] == "UNIX" ||
+ args[i] == "CRLF" || args[i] == "WIN32" ||
+ args[i] == "DOS")
+ {
+ /* Options handled by NewLineStyle member above. */
+ }
else
{
unknown_args += " ";