summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-10-14 23:00:34 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-16 15:12:19 (GMT)
commitb8bb6ba653df9d53d93824bb7185bf022e9bf2ef (patch)
tree4073db484bda9d8b6b55ee419237664b5a5fccf7 /Source/cmGeneratorTarget.cxx
parentf77a9576e542f7f0b2d32096a65fd232a1fd089e (diff)
downloadCMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.zip
CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.gz
CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.bz2
cmGeneratorTarget::GetExportMacro: return const std::string*
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 80fb621..ea283c6 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1730,7 +1730,7 @@ bool cmGeneratorTarget::HaveWellDefinedOutputFiles() const
this->GetType() == cmStateEnums::EXECUTABLE;
}
-const char* cmGeneratorTarget::GetExportMacro() const
+const std::string* cmGeneratorTarget::GetExportMacro() const
{
// Define the symbol for targets that export symbols.
if (this->GetType() == cmStateEnums::SHARED_LIBRARY ||
@@ -1743,7 +1743,7 @@ const char* cmGeneratorTarget::GetExportMacro() const
in += "_EXPORTS";
this->ExportMacro = cmSystemTools::MakeCidentifier(in);
}
- return this->ExportMacro.c_str();
+ return &this->ExportMacro;
}
return nullptr;
}