mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
cmGeneratorTarget::GetExportMacro: return const std::string*
This commit is contained in:
committed by
Brad King
parent
f77a9576e5
commit
b8bb6ba653
@@ -1814,9 +1814,9 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
|
||||
BuildObjectListOrString ppDefs(this, true);
|
||||
this->AppendDefines(
|
||||
ppDefs, "CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"");
|
||||
if (const char* exportMacro = gtgt->GetExportMacro()) {
|
||||
if (const std::string* exportMacro = gtgt->GetExportMacro()) {
|
||||
// Add the export symbol definition for shared library objects.
|
||||
this->AppendDefines(ppDefs, exportMacro);
|
||||
this->AppendDefines(ppDefs, exportMacro->c_str());
|
||||
}
|
||||
std::vector<std::string> targetDefines;
|
||||
if (!langForPreprocessor.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user