mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
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.
This commit is contained in:
@@ -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 += " ";
|
||||
|
||||
Reference in New Issue
Block a user