diff options
author | Brad King <brad.king@kitware.com> | 2017-05-02 12:24:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-02 12:24:06 (GMT) |
commit | a9e48968bb0f6b3919cb4ae3f00379631b98df5d (patch) | |
tree | aab0464b4858ecd1172a006fd5188aa08161370b /Source/cmLocalGenerator.cxx | |
parent | 4804c7f30ff659420cc0be5491bb77faa47a2f0c (diff) | |
parent | 9b97cb5562317ecb6fe65e6185eb6fda2b0ad7d7 (diff) | |
download | CMake-a9e48968bb0f6b3919cb4ae3f00379631b98df5d.zip CMake-a9e48968bb0f6b3919cb4ae3f00379631b98df5d.tar.gz CMake-a9e48968bb0f6b3919cb4ae3f00379631b98df5d.tar.bz2 |
Merge topic 'add-language-standards-to-more-compilers'
9b97cb55 PGI: Add language standards for PGI
daae564d Cray: Add language standards for the Cray compiler
25e83ce5 CompileFeatures: Let STD compile options be a list
1de70845 Compilers: Add common macros to be used by various compilers
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !784
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 8ce158b..0ab6e89 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1497,7 +1497,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; } |