[Cmake-commits] [cmake-commits] king committed cmMakefileTargetGenerator.cxx 1.114 1.115
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Feb 27 12:59:54 EST 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv31942/Source
Modified Files:
cmMakefileTargetGenerator.cxx
Log Message:
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.
Index: cmMakefileTargetGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx,v
retrieving revision 1.114
retrieving revision 1.115
diff -C 2 -d -r1.114 -r1.115
*** cmMakefileTargetGenerator.cxx 10 Feb 2009 13:51:13 -0000 1.114
--- cmMakefileTargetGenerator.cxx 27 Feb 2009 17:59:52 -0000 1.115
***************
*** 269,274 ****
if(const char* exportMacro = this->Target->GetExportMacro())
{
! flags += "-D";
! flags += exportMacro;
}
--- 269,273 ----
if(const char* exportMacro = this->Target->GetExportMacro())
{
! this->LocalGenerator->AppendDefines(defines, exportMacro, lang);
}
More information about the Cmake-commits
mailing list