CompileFeatures: Let STD compile options be a list

This commit is contained in:
Chuck Atkins
2016-10-05 14:54:54 -04:00
parent 1de7084501
commit 25e83ce580

View File

@@ -1464,7 +1464,11 @@ void cmLocalGenerator::AddCompilerRequirementFlag(
"does not know the compile flags to use to enable it.";
this->IssueMessage(cmake::FATAL_ERROR, e.str());
} else {
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;
}