diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-10-14 23:00:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-16 15:12:19 (GMT) |
commit | b8bb6ba653df9d53d93824bb7185bf022e9bf2ef (patch) | |
tree | 4073db484bda9d8b6b55ee419237664b5a5fccf7 /Source/cmGlobalXCodeGenerator.cxx | |
parent | f77a9576e542f7f0b2d32096a65fd232a1fd089e (diff) | |
download | CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.zip CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.gz CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.bz2 |
cmGeneratorTarget::GetExportMacro: return const std::string*
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index e353a37..596bc6b 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -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()) { |