summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-10 13:42:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-27 19:58:50 (GMT)
commit5b60eaf619baf4dfa2bc1a3f1109ff742a04f532 (patch)
tree16aedfec8ca596e5e0072ffffadec6842cc74833 /Source/cmTarget.cxx
parent50b17a6112704ad3897b1ccc87a0061cf7949ee7 (diff)
downloadCMake-5b60eaf619baf4dfa2bc1a3f1109ff742a04f532.zip
CMake-5b60eaf619baf4dfa2bc1a3f1109ff742a04f532.tar.gz
CMake-5b60eaf619baf4dfa2bc1a3f1109ff742a04f532.tar.bz2
cmTarget: Restore the ImportedGetLocation method.
It was removed in commit f154475b (cmTarget: Refactor GetLocation API, 2014-03-08), but it is more readable for targets we know are imported.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 295c862..e4cd4f3 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2754,6 +2754,15 @@ const char* cmTarget::GetLocation(const std::string& config) const
}
//----------------------------------------------------------------------------
+const char* cmTarget::ImportedGetLocation(const std::string& config) const
+{
+ static std::string location;
+ assert(this->IsImported());
+ location = this->ImportedGetFullPath(config, false);
+ return location.c_str();
+}
+
+//----------------------------------------------------------------------------
const char* cmTarget::GetLocationForBuild() const
{
static std::string location;