diff options
author | Brad King <brad.king@kitware.com> | 2008-01-16 02:02:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-16 02:02:00 (GMT) |
commit | 80c2be45e0b1701406e3739bb8a0a8fcad949f69 (patch) | |
tree | 1a26958f6aa3fe9c11349b532486b5523123a6fd /Source/cmMakefileTargetGenerator.cxx | |
parent | 8e5e423f78f665d5789679063f0a6cc560da1bd5 (diff) | |
download | CMake-80c2be45e0b1701406e3739bb8a0a8fcad949f69.zip CMake-80c2be45e0b1701406e3739bb8a0a8fcad949f69.tar.gz CMake-80c2be45e0b1701406e3739bb8a0a8fcad949f69.tar.bz2 |
ENH: Renamed <CONFIG>_COMPILE_DEFINITIONS to COMPILE_DEFINITIONS_<CONFIG> for better documentation clarity.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 86c567d..e529ef7 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -268,9 +268,9 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags() // Add preprocessor definitions for this target and configuration. this->LocalGenerator->AppendDefines (defines, this->Target->GetProperty("COMPILE_DEFINITIONS")); - std::string defPropName = + std::string defPropName = "COMPILE_DEFINITIONS_"; + defPropName += cmSystemTools::UpperCase(this->LocalGenerator->ConfigurationName); - defPropName += "_COMPILE_DEFINITIONS"; this->LocalGenerator->AppendDefines (defines, this->Target->GetProperty(defPropName.c_str())); @@ -464,8 +464,8 @@ cmMakefileTargetGenerator } std::string configUpper = cmSystemTools::UpperCase(this->LocalGenerator->ConfigurationName); - std::string defPropName = configUpper; - defPropName += "_COMPILE_DEFINITIONS"; + std::string defPropName = "COMPILE_DEFINITIONS_"; + defPropName += configUpper; if(const char* config_compile_defs = source.GetProperty(defPropName.c_str())) { |