Commit 6c8dc7f1 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmake: Simplify find-package mode library addition

It does not need the cmMakefile version.
parent 1efca9f4
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment