diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-06 16:13:35 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-11 06:23:56 (GMT) |
commit | 184121538c2576b2113c0e256ecb0cd9ac354134 (patch) | |
tree | 20ed38bafe4ff886b00c0ff6160f45744465b3ac /Source/cmLocalGenerator.cxx | |
parent | afc9243c325c37ac7364af12a10adffd7dd81d25 (diff) | |
download | CMake-184121538c2576b2113c0e256ecb0cd9ac354134.zip CMake-184121538c2576b2113c0e256ecb0cd9ac354134.tar.gz CMake-184121538c2576b2113c0e256ecb0cd9ac354134.tar.bz2 |
Refactor cmTarget::GetCompileDefinitions to use an out-vector, not a string.
Refactor to create AddCompileDefinitions.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 70d7d16..6240054 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1339,6 +1339,17 @@ std::string cmLocalGenerator::GetIncludeFlags( } //---------------------------------------------------------------------------- +void cmLocalGenerator::AddCompileDefinitions(std::set<std::string>& defines, + cmTarget* target, + const char* config) +{ + std::vector<std::string> targetDefines; + target->GetCompileDefinitions(targetDefines, + config); + this->AppendDefines(defines, targetDefines); +} + +//---------------------------------------------------------------------------- void cmLocalGenerator::AddCompileOptions( std::string& flags, cmTarget* target, const char* lang, const char* config |