diff options
author | Brad King <brad.king@kitware.com> | 2008-01-17 10:00:19 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-17 10:00:19 -0500 |
commit | 18b9e7db6c84bfe3936d33e7c7ca86a544f3e818 (patch) | |
tree | a24be738857d8de87efdba3ebae30a7795d54016 /Source/cmMakefileTargetGenerator.cxx | |
parent | 81af53e3c0b00005d2cf81a4a5482474573dd4b1 (diff) | |
download | cmake-18b9e7db6c84bfe3936d33e7c7ca86a544f3e818.tar.gz |
ENH: Enable CMAKE_<lang>_DEFINE_FLAG for COMPILE_DEFINITIONS property implementation.
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 e529ef7bda..ce1442fd4b 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -267,12 +267,12 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags() // Add preprocessor definitions for this target and configuration. this->LocalGenerator->AppendDefines - (defines, this->Target->GetProperty("COMPILE_DEFINITIONS")); + (defines, this->Target->GetProperty("COMPILE_DEFINITIONS"), lang); std::string defPropName = "COMPILE_DEFINITIONS_"; defPropName += cmSystemTools::UpperCase(this->LocalGenerator->ConfigurationName); this->LocalGenerator->AppendDefines - (defines, this->Target->GetProperty(defPropName.c_str())); + (defines, this->Target->GetProperty(defPropName.c_str()), lang); // Add language-specific flags. this->LocalGenerator @@ -456,7 +456,7 @@ cmMakefileTargetGenerator // Add source-sepcific preprocessor definitions. if(const char* compile_defs = source.GetProperty("COMPILE_DEFINITIONS")) { - this->LocalGenerator->AppendDefines(defines, compile_defs); + this->LocalGenerator->AppendDefines(defines, compile_defs, lang); *this->FlagFileStream << "# Custom defines: " << relativeObj << "_DEFINES = " << compile_defs << "\n" @@ -469,7 +469,7 @@ cmMakefileTargetGenerator if(const char* config_compile_defs = source.GetProperty(defPropName.c_str())) { - this->LocalGenerator->AppendDefines(defines, config_compile_defs); + this->LocalGenerator->AppendDefines(defines, config_compile_defs, lang); *this->FlagFileStream << "# Custom defines: " << relativeObj << "_DEFINES_" << configUpper |