diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-10 13:42:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-27 19:58:50 (GMT) |
commit | 5b60eaf619baf4dfa2bc1a3f1109ff742a04f532 (patch) | |
tree | 16aedfec8ca596e5e0072ffffadec6842cc74833 /Source/cmTarget.cxx | |
parent | 50b17a6112704ad3897b1ccc87a0061cf7949ee7 (diff) | |
download | CMake-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.cxx | 9 |
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; |