diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-09-17 09:45:40 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-09-19 13:32:13 (GMT) |
commit | d1446ca7a0d1de4ede995d64deef057c741ef0c2 (patch) | |
tree | 82e346c3c974e607081182bb3ddb86718a32b2e7 /Source/cmNinjaTargetGenerator.cxx | |
parent | 290e92ada86c5b74669be48ee901494ae8e48ee3 (diff) | |
download | CMake-d1446ca7a0d1de4ede995d64deef057c741ef0c2.zip CMake-d1446ca7a0d1de4ede995d64deef057c741ef0c2.tar.gz CMake-d1446ca7a0d1de4ede995d64deef057c741ef0c2.tar.bz2 |
Append the COMPILE_DEFINITIONS from the Makefile to all targets.
This way we don't need to check the definitions from the Makefile when
generating later, and can more easily add generator expressions.
Duplication is not a problem as the definitions are de-duplicated before
generating.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index a384cfb..d4ab133 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -195,9 +195,6 @@ ComputeDefines(cmSourceFile *source, const std::string& language) // Add preprocessor definitions for this target and configuration. this->LocalGenerator->AppendDefines (defines, - this->Makefile->GetProperty("COMPILE_DEFINITIONS")); - this->LocalGenerator->AppendDefines - (defines, this->Target->GetProperty("COMPILE_DEFINITIONS")); this->LocalGenerator->AppendDefines (defines, @@ -207,9 +204,6 @@ ComputeDefines(cmSourceFile *source, const std::string& language) defPropName += cmSystemTools::UpperCase(this->GetConfigName()); this->LocalGenerator->AppendDefines (defines, - this->Makefile->GetProperty(defPropName.c_str())); - this->LocalGenerator->AppendDefines - (defines, this->Target->GetProperty(defPropName.c_str())); this->LocalGenerator->AppendDefines (defines, |