diff options
author | Brad King <brad.king@kitware.com> | 2013-07-15 13:34:00 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-07-15 13:34:00 (GMT) |
commit | d5d54b46299c65f0c5a80f973ad88a8dd30931c5 (patch) | |
tree | a8c7006327a29c60eda654054e64465102116bf0 /Source/cmGlobalGenerator.cxx | |
parent | 7fa77b3fb3d811f2661f19e0985c6eb2c8021468 (diff) | |
parent | d7dd01083a99055d689c80fe28bbc79a11bf3da1 (diff) | |
download | CMake-d5d54b46299c65f0c5a80f973ad88a8dd30931c5.zip CMake-d5d54b46299c65f0c5a80f973ad88a8dd30931c5.tar.gz CMake-d5d54b46299c65f0c5a80f973ad88a8dd30931c5.tar.bz2 |
Merge topic 'compile-defs-debugging'
d7dd010 Add target property debugging for COMPILE_DEFINITIONS
1841215 Refactor cmTarget::GetCompileDefinitions to use an out-vector, not a string.
afc9243 Add an overload of cmIDEOptions::AddDefines taking a vector of strings.
d95651e Overload cmLocalGenerator::AppendDefines to add a list.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 19b9110..740420e 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1137,8 +1137,9 @@ void cmGlobalGenerator::CreateGeneratorTargets() cmGeneratorTargetsType generatorTargets; cmMakefile *mf = this->LocalGenerators[i]->GetMakefile(); - const char *noconfig_compile_definitions = - mf->GetProperty("COMPILE_DEFINITIONS"); + + const std::vector<cmValueWithOrigin> noconfig_compile_definitions = + mf->GetCompileDefinitionsEntries(); std::vector<std::string> configs; mf->GetConfigurations(configs); @@ -1150,7 +1151,13 @@ void cmGlobalGenerator::CreateGeneratorTargets() cmTarget* t = &ti->second; { - t->AppendProperty("COMPILE_DEFINITIONS", noconfig_compile_definitions); + for (std::vector<cmValueWithOrigin>::const_iterator it + = noconfig_compile_definitions.begin(); + it != noconfig_compile_definitions.end(); ++it) + { + t->InsertCompileDefinition(*it); + } + for(std::vector<std::string>::const_iterator ci = configs.begin(); ci != configs.end(); ++ci) { |