Add executable with exports flag support to cmLocalGenerator::GetTargetFlags
This commit is contained in:
parent
2cd36550b0
commit
4468edf12b
|
@ -1583,6 +1583,16 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs,
|
||||||
this->Makefile->GetSafeDefinition("CMAKE_CREATE_CONSOLE_EXE");
|
this->Makefile->GetSafeDefinition("CMAKE_CREATE_CONSOLE_EXE");
|
||||||
linkFlags += " ";
|
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");
|
const char* targetLinkFlags = target.GetProperty("LINK_FLAGS");
|
||||||
if(targetLinkFlags)
|
if(targetLinkFlags)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue