summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2016-10-05 18:54:54 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2017-05-01 19:15:29 (GMT)
commit25e83ce580d7e6821a07198ce13338a82b966c0b (patch)
tree672e2521814dcfc2296f7a4a50f4d958beb19f52 /Source/cmLocalGenerator.cxx
parent1de7084501aa094858d344f92dd2c9fe744a4e9a (diff)
downloadCMake-25e83ce580d7e6821a07198ce13338a82b966c0b.zip
CMake-25e83ce580d7e6821a07198ce13338a82b966c0b.tar.gz
CMake-25e83ce580d7e6821a07198ce13338a82b966c0b.tar.bz2
CompileFeatures: Let STD compile options be a list
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 33e32d1..b9448b3 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -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;
}