From 86b332c25d22f7050ed60c1604c2a188c5885619 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Wed, 11 Jul 2018 16:58:48 +0200 Subject: Return std::string from cmGeneratorTarget::ImportedGetLocation --- Source/cmGeneratorTarget.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source/cmGeneratorTarget.cxx') diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 3989ebe822..098c13a48f 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -3358,14 +3358,12 @@ std::string cmGeneratorTarget::GetFullNameInternal( return prefix + base + suffix; } -const char* cmGeneratorTarget::ImportedGetLocation( +std::string cmGeneratorTarget::ImportedGetLocation( const std::string& config) const { - static std::string location; assert(this->IsImported()); - location = this->Target->ImportedGetFullPath( + return this->Target->ImportedGetFullPath( config, cmStateEnums::RuntimeBinaryArtifact); - return location.c_str(); } std::string cmGeneratorTarget::GetFullNameImported( -- cgit v1.2.1