summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-11 19:11:38 (GMT)
committerPeter Collingbourne <peter@pcc.me.uk>2012-02-02 23:36:42 (GMT)
commit4468edf12b0b87e32768fcdce7abd30afddcad7b (patch)
tree8aa568e0162a65c113cf06b38a882becaf7ab389
parent2cd36550b073fd4f559f7edc5a5170af534f1068 (diff)
downloadCMake-4468edf12b0b87e32768fcdce7abd30afddcad7b.zip
CMake-4468edf12b0b87e32768fcdce7abd30afddcad7b.tar.gz
CMake-4468edf12b0b87e32768fcdce7abd30afddcad7b.tar.bz2
Add executable with exports flag support to cmLocalGenerator::GetTargetFlags
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index ffbeb48..1cfefed 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1583,6 +1583,16 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs,
this->Makefile->GetSafeDefinition("CMAKE_CREATE_CONSOLE_EXE");
linkFlags += " ";
}
+ if (target.IsExecutableWithExports())
+ {
+ std::string exportFlagVar = "CMAKE_EXE_EXPORTS_";
+ exportFlagVar += linkLanguage;
+ exportFlagVar += "_FLAG";
+
+ linkFlags +=
+ this->Makefile->GetSafeDefinition(exportFlagVar.c_str());
+ linkFlags += " ";
+ }
const char* targetLinkFlags = target.GetProperty("LINK_FLAGS");
if(targetLinkFlags)
{