mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
Features: Escape the COMPILE_OPTIONS for dialects.
Allow for future handling as a list, not a string which may contain whitespace.
This commit is contained in:
@@ -2229,7 +2229,10 @@ AddCompilerRequirementFlag(std::string &flags, cmTarget* target,
|
|||||||
"does not know the compile flags to use to enable it.";
|
"does not know the compile flags to use to enable it.";
|
||||||
this->GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
|
this->GetMakefile()->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||||
}
|
}
|
||||||
this->AppendFlags(flags, opt);
|
else
|
||||||
|
{
|
||||||
|
this->AppendFlagEscape(flags, opt);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2275,7 +2278,7 @@ AddCompilerRequirementFlag(std::string &flags, cmTarget* target,
|
|||||||
|
|
||||||
if (const char *opt = target->GetMakefile()->GetDefinition(option_flag))
|
if (const char *opt = target->GetMakefile()->GetDefinition(option_flag))
|
||||||
{
|
{
|
||||||
this->AppendFlags(flags, opt);
|
this->AppendFlagEscape(flags, opt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user