summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-07 18:13:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-07 18:23:19 (GMT)
commit6c8dc7f1df6d3492d11ad994a35ee2f0b8a4e60b (patch)
tree5126beebc83e07ca8d0cb0989123aa9cb745c1c3 /Source/cmake.cxx
parent1efca9f427a5c537afc034aadf0c29073bfdfa22 (diff)
downloadCMake-6c8dc7f1df6d3492d11ad994a35ee2f0b8a4e60b.zip
CMake-6c8dc7f1df6d3492d11ad994a35ee2f0b8a4e60b.tar.gz
CMake-6c8dc7f1df6d3492d11ad994a35ee2f0b8a4e60b.tar.bz2
cmake: Simplify find-package mode library addition
It does not need the cmMakefile version.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 14124f8..dad8717 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -568,7 +568,7 @@ bool cmake::FindPackage(const std::vector<std::string>& args)
cmSystemTools::ExpandListArgument(libs, libList);
for (std::vector<std::string>::const_iterator libIt = libList.begin();
libIt != libList.end(); ++libIt) {
- mf->AddLinkLibraryForTarget(targetName, *libIt, GENERAL_LibraryType);
+ tgt->AddLinkLibrary(*mf, *libIt, GENERAL_LibraryType);
}
std::string buildType = mf->GetSafeDefinition("CMAKE_BUILD_TYPE");