mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
Merge branch 'backport-fix-lang-std-option-list' into release-3.9
This commit is contained in:
@@ -1591,7 +1591,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;
|
||||
}
|
||||
|
||||
@@ -1601,7 +1605,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