summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.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/cmLocalGenerator.cxx
parentf77a9576e542f7f0b2d32096a65fd232a1fd089e (diff)
downloadCMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.zip
CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.gz
CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.bz2
cmGeneratorTarget::GetExportMacro: return const std::string*
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 229f884..941d787 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1253,8 +1253,8 @@ void cmLocalGenerator::GetTargetDefines(cmGeneratorTarget const* target,
std::set<std::string>& defines) const
{
// Add the export symbol definition for shared library objects.
- if (const char* exportMacro = target->GetExportMacro()) {
- this->AppendDefines(defines, exportMacro);
+ if (const std::string* exportMacro = target->GetExportMacro()) {
+ this->AppendDefines(defines, *exportMacro);
}
// Add preprocessor definitions for this target and configuration.