[CMake] Get find_package to choose INSTALLed libraries instead of libraries in the build folder

Saad Khattak saadrustam at gmail.com
Thu Jan 11 13:43:45 EST 2018


Hi,

I would like find_package(MyLib) to link find the libraries found in the
INSTALL folder instead of the build folder.

Currently, when I do a find_package(MyLib) and then
target_link_libraries(target MyLib) the paths all point to MyLib's build
folder and not the folder where MyLib's library/headers were installed.

Thank you,
Saad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180111/9a5fd140/attachment.html>


More information about the CMake mailing list