diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-09-17 17:56:50 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-09-19 13:32:19 (GMT) |
commit | c31f3d99f8adc95c355f8607bdfccf01cc37c51d (patch) | |
tree | b7eadc1c88e22a045c42bd66b51a15c486559ba6 /Source/cmNinjaTargetGenerator.cxx | |
parent | d1446ca7a0d1de4ede995d64deef057c741ef0c2 (diff) | |
download | CMake-c31f3d99f8adc95c355f8607bdfccf01cc37c51d.zip CMake-c31f3d99f8adc95c355f8607bdfccf01cc37c51d.tar.gz CMake-c31f3d99f8adc95c355f8607bdfccf01cc37c51d.tar.bz2 |
Add a wrapper for accessing config-specific compile-definitions.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index d4ab133..1d11aca 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -195,7 +195,7 @@ ComputeDefines(cmSourceFile *source, const std::string& language) // Add preprocessor definitions for this target and configuration. this->LocalGenerator->AppendDefines (defines, - this->Target->GetProperty("COMPILE_DEFINITIONS")); + this->GeneratorTarget->GetCompileDefinitions()); this->LocalGenerator->AppendDefines (defines, source->GetProperty("COMPILE_DEFINITIONS")); @@ -204,7 +204,7 @@ ComputeDefines(cmSourceFile *source, const std::string& language) defPropName += cmSystemTools::UpperCase(this->GetConfigName()); this->LocalGenerator->AppendDefines (defines, - this->Target->GetProperty(defPropName.c_str())); + this->GeneratorTarget->GetCompileDefinitions(this->GetConfigName())); this->LocalGenerator->AppendDefines (defines, source->GetProperty(defPropName.c_str())); |