summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-15 10:07:57 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-17 13:31:58 (GMT)
commitea17a03be5794a934991b1f958cab12b7011da74 (patch)
treef2a8121bd256bb1016dbba5dbc5da5ed217de604 /Source/cmTarget.cxx
parent6e466c6f2ee5160202aaa76a9d643d34bd7d908a (diff)
downloadCMake-ea17a03be5794a934991b1f958cab12b7011da74.zip
CMake-ea17a03be5794a934991b1f958cab12b7011da74.tar.gz
CMake-ea17a03be5794a934991b1f958cab12b7011da74.tar.bz2
cmTarget: Port <CONFIG>_LOCATION support to updated string APIs
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c07fd0f..17c8a4d 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2673,7 +2673,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
// Support "<CONFIG>_LOCATION".
if(cmHasLiteralSuffix(prop, "_LOCATION"))
{
- std::string configName(prop, strlen(prop) - 9);
+ std::string configName(prop.c_str(), prop.size() - 9);
if(configName != "IMPORTED")
{
if (!this->HandleLocationPropertyPolicy())
@@ -2681,7 +2681,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
return 0;
}
this->Properties.SetProperty(prop,
- this->GetLocation(configName.c_str()),
+ this->GetLocation(configName),
cmProperty::TARGET);
}
}