summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-07-11 14:58:48 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2018-07-11 14:58:48 (GMT)
commit86b332c25d22f7050ed60c1604c2a188c5885619 (patch)
treea24e0c71065919d0e2171b85c4b789526277ddbd /Source/cmGeneratorTarget.cxx
parent189f723509a5077d044510e90b01775e2997302a (diff)
downloadCMake-86b332c25d22f7050ed60c1604c2a188c5885619.zip
CMake-86b332c25d22f7050ed60c1604c2a188c5885619.tar.gz
CMake-86b332c25d22f7050ed60c1604c2a188c5885619.tar.bz2
Return std::string from cmGeneratorTarget::ImportedGetLocation
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 3989ebe..098c13a 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(