diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-30 12:16:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-04 10:28:58 (GMT) |
commit | a55c70de78755d7086acaa639a92c9a7480d7938 (patch) | |
tree | f5a26b4a6992b448827f5aa804aadc613981d34a | |
parent | c9f9b3cd943f699676db3ac9a35f49b7e13a6702 (diff) | |
download | CMake-a55c70de78755d7086acaa639a92c9a7480d7938.zip CMake-a55c70de78755d7086acaa639a92c9a7480d7938.tar.gz CMake-a55c70de78755d7086acaa639a92c9a7480d7938.tar.bz2 |
cmTarget: Remove support for <CONFIG>_LOCATION property.
It is not documented, is very old, is compatibility code,
is non-uniform and is not needed.
-rw-r--r-- | Source/cmTarget.cxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1f3d2a5..ead48b9 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 "<CONFIG>_LOCATION" for compatibility. - int len = static_cast<int>(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) { |