From b41c8fe23e522106f932a7f10f6d72dd38879854 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 27 Feb 2009 12:59:52 -0500 Subject: BUG: Pass shared library export symbol in DEFINES The _EXPORTS macro defined for object files when built in a shared library should be put in the make rule replacement and not . Also, it should honor the platform variable CMAKE__DEFINE_FLAG. See issue #8107. --- Source/cmMakefileTargetGenerator.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 3f41a99..cbc8fd5 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -268,8 +268,7 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags() // Add the export symbol definition for shared library objects. if(const char* exportMacro = this->Target->GetExportMacro()) { - flags += "-D"; - flags += exportMacro; + this->LocalGenerator->AppendDefines(defines, exportMacro, lang); } // Add preprocessor definitions for this target and configuration. -- cgit v0.12