diff options
author | Brad King <brad.king@kitware.com> | 2009-02-27 17:59:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-27 17:59:52 (GMT) |
commit | b41c8fe23e522106f932a7f10f6d72dd38879854 (patch) | |
tree | 9111e742b878da90f8ad0f5a45b6c67c3f93bc2d | |
parent | 1d3308156e1fc1646873b22317265c61288e9e42 (diff) | |
download | CMake-b41c8fe23e522106f932a7f10f6d72dd38879854.zip CMake-b41c8fe23e522106f932a7f10f6d72dd38879854.tar.gz CMake-b41c8fe23e522106f932a7f10f6d72dd38879854.tar.bz2 |
BUG: Pass shared library export symbol in DEFINES
The <target>_EXPORTS macro defined for object files when built in a
shared library <target> should be put in the <DEFINES> make rule
replacement and not <FLAGS>. Also, it should honor the platform
variable CMAKE_<LANG>_DEFINE_FLAG. See issue #8107.
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 3 |
1 files changed, 1 insertions, 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. |