| 1840 | } |
| 1841 | |
| 1842 | std::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 | |
| 1859 | cmList const& cmGeneratorTarget::GetSharedLibraryCompileDefs( |
| 1860 | std::string const& config) const |
no test coverage detected