mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Merge branch 'backport-fix-lang-std-option-list' into fix-lang-std-option-list
This commit is contained in:
@@ -1647,7 +1647,11 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
|
||||
|
||||
const char* opt =
|
||||
target->Target->GetMakefile()->GetRequiredDefinition(option_flag);
|
||||
this->AppendFlagEscape(flags, opt);
|
||||
std::vector<std::string> optVec;
|
||||
cmSystemTools::ExpandListArgument(opt, optVec);
|
||||
for (size_t i = 0; i < optVec.size(); ++i) {
|
||||
this->AppendFlagEscape(flags, optVec[i]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1660,7 +1664,11 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
|
||||
|
||||
if (const char* opt =
|
||||
target->Target->GetMakefile()->GetDefinition(option_flag)) {
|
||||
this->AppendFlagEscape(flags, opt);
|
||||
std::vector<std::string> optVec;
|
||||
cmSystemTools::ExpandListArgument(opt, optVec);
|
||||
for (size_t i = 0; i < optVec.size(); ++i) {
|
||||
this->AppendFlagEscape(flags, optVec[i]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user