MCPcopy Create free account
hub / github.com/Kitware/CMake / GetExeExportFlags

Method GetExeExportFlags

Source/cmLocalGenerator.cxx:1923–1940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1921}
1922
1923std::string cmLocalGenerator::GetExeExportFlags(
1924 std::string const& linkLanguage, cmGeneratorTarget& tgt) const
1925{
1926 std::string linkFlags;
1927
1928 // Flags to export symbols from an executable.
1929 if (tgt.GetType() == cmStateEnums::EXECUTABLE &&
1930 this->StateSnapshot.GetState()->GetGlobalPropertyAsBool(
1931 "TARGET_SUPPORTS_SHARED_LIBS")) {
1932 // Only add the flags if ENABLE_EXPORTS is on,
1933 // except on AIX where we compute symbol exports.
1934 if (!tgt.IsAIX() && tgt.GetPropertyAsBool("ENABLE_EXPORTS")) {
1935 linkFlags = this->Makefile->GetSafeDefinition(
1936 cmStrCat("CMAKE_SHARED_LIBRARY_LINK_", linkLanguage, "_FLAGS"));
1937 }
1938 }
1939 return linkFlags;
1940}
1941
1942bool cmLocalGenerator::AllAppleArchSysrootsAreTheSame(
1943 std::vector<std::string> const& archs, cmValue sysroot)

Callers 2

GetTargetFlagsMethod · 0.95
WriteExecutableRuleMethod · 0.80

Calls 6

cmStrCatFunction · 0.70
GetTypeMethod · 0.45
GetStateMethod · 0.45
IsAIXMethod · 0.45
GetPropertyAsBoolMethod · 0.45

Tested by

no test coverage detected