summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-08 17:03:22 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-08 17:03:22 (GMT)
commit2b5d97419f3c0f09575b9f8b7afd2f328e769554 (patch)
tree9ba8ea09cdcb743272d7a774f4a4c2b0269d31f5 /Source/cmTarget.cxx
parent7c67524dfac73bc5b8dea586bab0ce3e8206aeb7 (diff)
downloadCMake-2b5d97419f3c0f09575b9f8b7afd2f328e769554.zip
CMake-2b5d97419f3c0f09575b9f8b7afd2f328e769554.tar.gz
CMake-2b5d97419f3c0f09575b9f8b7afd2f328e769554.tar.bz2
ENH: Do not compute link language for LOCATION
The LOCATION property requires the full file name of a target to be computed. Previously we computed the linker language for a target to look up variables such as CMAKE_SHARED_LIBRARY_SUFFIX_<LANG>. This led to locating all the source files immediately instead of delaying the search to generation time. In the future even more computation will be needed to get the linker language, so it is better to avoid it. The _<LANG> versions of these variables are undocumented, not set in any platform file we provide, and do not produce hits in google. This change just removes the unused feature outright.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c7fd6b0..58cf24e 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2708,21 +2708,6 @@ void cmTarget::GetFullNameInternal(const char* config,
}
const char* prefixVar = this->GetPrefixVariableInternal(implib);
const char* suffixVar = this->GetSuffixVariableInternal(implib);
- const char* ll = this->GetLinkerLanguage();
- // first try language specific suffix
- if(ll)
- {
- if(!targetSuffix && suffixVar && *suffixVar)
- {
- std::string langSuff = suffixVar + std::string("_") + ll;
- targetSuffix = this->Makefile->GetDefinition(langSuff.c_str());
- }
- if(!targetPrefix && prefixVar && *prefixVar)
- {
- std::string langPrefix = prefixVar + std::string("_") + ll;
- targetPrefix = this->Makefile->GetDefinition(langPrefix.c_str());
- }
- }
// if there is no prefix on the target use the cmake definition
if(!targetPrefix && prefixVar)