diff options
author | Brad King <brad.king@kitware.com> | 2015-03-09 12:38:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-09 13:17:59 (GMT) |
commit | 3ef776fc38fecff332e568f307dcf4e6f82fbe14 (patch) | |
tree | 94031cb0cec298c60c2e3302c87440127d43f506 /Source/cmConfigureFileCommand.cxx | |
parent | 99575c9ac114e6f5d388e1ee7b9a3f788d773c9e (diff) | |
download | CMake-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.cxx | 7 |
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 += " "; |