[CMake] CMake toolchain and FIND_PACKAGE(OpenSSL)

Boards Killer boards.killer at gmail.com
Tue Nov 20 04:49:44 EST 2012


>> I'm pretty sure LINK_DIRECTORIES should not be used in toolchain
>> if not use at all.
>>
>> The purpose of find_package is precisely to find the full path to libraries
>> thus not to need to use "LINK_DIRECTORIES".
>
> You are right. It seems that removing LINK_DIRECTORIES does the trick!

Oops... My bad. Nope, CMake still does not find the OpenSSL library, even if I
throw all INCLUDE and LINK directories directives away...

Is there a way to trace what CMake is doing when looking up for OpenSSL?

TIA,
/ld


More information about the CMake mailing list