diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-05-16 13:15:28 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-02 09:56:37 (GMT) |
commit | 80ca9c4b41ecdce069a6c3f4c1b558084a748876 (patch) | |
tree | e96eb29cd532378cd79c3e3ea4bb975ffbc2e285 /Source/cmLocalGenerator.cxx | |
parent | 7cb23084b2595d06aea46cead0e077b5f13aeddb (diff) | |
download | CMake-80ca9c4b41ecdce069a6c3f4c1b558084a748876.zip CMake-80ca9c4b41ecdce069a6c3f4c1b558084a748876.tar.gz CMake-80ca9c4b41ecdce069a6c3f4c1b558084a748876.tar.bz2 |
Add COMPILE_OPTIONS target property.
This method reads generator expressions from the COMPILE_OPTIONS
target property, as well as INTERFACE_COMPILE_OPTIONS from linked
dependents.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 9429450..57e25a1 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1334,6 +1334,14 @@ void cmLocalGenerator::GetCompileOptions(std::string& flags, { this->AppendFlags(flags, prop); } + + std::vector<std::string> opts; // TODO: Emitted. + target->GetCompileOptions(opts, config); + for(std::vector<std::string>::const_iterator li = opts.begin(); + li != opts.end(); ++li) + { + this->AppendFlags(flags, li->c_str()); + } } //---------------------------------------------------------------------------- |