summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-16 17:19:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-16 18:24:43 (GMT)
commita892b285f8c621ba50f45f5c4218980c911fd1b6 (patch)
tree4895142f18598d9510b4703a7d7541d0cebf6f4f /Source/cmGeneratorTarget.cxx
parentcb8c728f17a61732064280ddb98203cb277e5a3c (diff)
downloadCMake-a892b285f8c621ba50f45f5c4218980c911fd1b6.zip
CMake-a892b285f8c621ba50f45f5c4218980c911fd1b6.tar.gz
CMake-a892b285f8c621ba50f45f5c4218980c911fd1b6.tar.bz2
cmGeneratorTarget: Move ImportedGetLocation from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 98150df..2ef2f5c 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -3344,6 +3344,16 @@ std::string cmGeneratorTarget::GetFullNameInternal(const std::string& config,
}
//----------------------------------------------------------------------------
+const char*
+cmGeneratorTarget::ImportedGetLocation(const std::string& config) const
+{
+ static std::string location;
+ assert(this->IsImported());
+ location = this->Target->ImportedGetFullPath(config, false);
+ return location.c_str();
+}
+
+//----------------------------------------------------------------------------
std::string cmGeneratorTarget::GetFullNameImported(const std::string& config,
bool implib) const
{