diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index b484a95d6..ef2fde5da 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -3207,10 +3207,10 @@ cmTargetLinkInterface* cmTarget::ComputeLinkInterface(const char* config) } // Construct the list of libs linked for this configuration. - cmTarget::LinkLibraryVectorType const& libs = + cmTarget::LinkLibraryVectorType const& llibs = this->GetOriginalLinkLibraries(); - for(cmTarget::LinkLibraryVectorType::const_iterator li = libs.begin(); - li != libs.end(); ++li) + for(cmTarget::LinkLibraryVectorType::const_iterator li = llibs.begin(); + li != llibs.end(); ++li) { // Skip entries that will resolve to the target itself, are empty, // or are not meant for this configuration.