Limit linking kipi-plugins to OpenCV libraries to only needed components
Review Request #119413 - Created July 22, 2014 and submitted - Latest diff uploaded
- Force resetting OpenCV_LIBS before calling find_package() to make sure no extra libraries sneak in target_link_libraries() calls.
- Limit KIPI plugins linking to only OpenCV components it really uses.
This, in particular, unbreaks building Digikam on OpenBSD, where different OpenCV components live in different packages. Before the patch, this forced to always have all OpenCV components installed, even if they aren't really needed while neither building or running Digikam.
Related reviews: https://git.reviewboard.kde.org/r/119201/ and https://git.reviewboard.kde.org/r/119414/ . All those three patches should be applied to have an effect on Digikam SC build.