[cmake-commits] king committed
cmMakefileExecutableTargetGenerator.cxx 1.32 1.33
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Apr 17 23:39:49 EDT 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv32194/Source
Modified Files:
cmMakefileExecutableTargetGenerator.cxx
Log Message:
ENH: Added platform variable CMAKE_EXE_EXPORTS_<lang>_FLAG to add a linker flag when building executables that have the ENABLE_EXPORTS property set.
Index: cmMakefileExecutableTargetGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefileExecutableTargetGenerator.cxx,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- cmMakefileExecutableTargetGenerator.cxx 22 Mar 2007 13:45:24 -0000 1.32
+++ cmMakefileExecutableTargetGenerator.cxx 18 Apr 2007 03:39:47 -0000 1.33
@@ -257,6 +257,16 @@
(linkFlags, this->Makefile->GetDefinition("CMAKE_CREATE_CONSOLE_EXE"));
}
+ // Add symbol export flags if necessary.
+ if(this->Target->GetPropertyAsBool("ENABLE_EXPORTS"))
+ {
+ std::string export_flag_var = "CMAKE_EXE_EXPORTS_";
+ export_flag_var += linkLanguage;
+ export_flag_var += "_FLAG";
+ this->LocalGenerator->AppendFlags
+ (linkFlags, this->Makefile->GetDefinition(export_flag_var.c_str()));
+ }
+
// Add language-specific flags.
this->LocalGenerator
->AddLanguageFlags(flags, linkLanguage,
More information about the Cmake-commits
mailing list