From a55c70de78755d7086acaa639a92c9a7480d7938 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 30 Dec 2013 13:16:22 +0100 Subject: [PATCH] cmTarget: Remove support for _LOCATION property. It is not documented, is very old, is compatibility code, is non-uniform and is not needed. --- Source/cmTarget.cxx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1f3d2a52a..ead48b9d6 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2722,25 +2722,6 @@ const char *cmTarget::GetProperty(const char* prop, this->GetLocation(configName.c_str()), cmProperty::TARGET); } - else - { - // Support "_LOCATION" for compatibility. - int len = static_cast(strlen(prop)); - if(len > 9 && strcmp(prop+len-9, "_LOCATION") == 0) - { - std::string configName(prop, len-9); - if(configName != "IMPORTED") - { - if (!this->HandleLocationPropertyPolicy()) - { - return 0; - } - this->Properties.SetProperty(prop, - this->GetLocation(configName.c_str()), - cmProperty::TARGET); - } - } - } } if(strcmp(prop,"INCLUDE_DIRECTORIES") == 0) {