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

Method GetExportMacro

Source/cmGeneratorTarget.cxx:1842–1857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1840}
1841
1842std::string const* cmGeneratorTarget::GetExportMacro() const
1843{
1844 // Define the symbol for targets that export symbols.
1845 if (this->GetType() == cmStateEnums::SHARED_LIBRARY ||
1846 this->GetType() == cmStateEnums::MODULE_LIBRARY ||
1847 this->IsExecutableWithExports()) {
1848 if (cmValue custom_export_name = this->GetProperty("DEFINE_SYMBOL")) {
1849 this->ExportMacro = *custom_export_name;
1850 } else {
1851 std::string in = cmStrCat(this->GetName(), "_EXPORTS");
1852 this->ExportMacro = cmSystemTools::MakeCidentifier(in);
1853 }
1854 return &this->ExportMacro;
1855 }
1856 return nullptr;
1857}
1858
1859cmList const& cmGeneratorTarget::GetSharedLibraryCompileDefs(
1860 std::string const& config) const

Callers 5

CreateBuildSettingsMethod · 0.80
GetTargetDefinesMethod · 0.80
WriteConfigurationMethod · 0.80
ComputeClOptionsMethod · 0.80
ComputeCudaOptionsMethod · 0.80

Calls 5

GetTypeMethod · 0.95
GetPropertyMethod · 0.95
cmStrCatFunction · 0.70
GetNameMethod · 0.45

Tested by

no test coverage detected