[CMake] Problems finding the SSL library

Michael Wild themiwi at gmail.com
Mon Jan 16 11:12:13 EST 2012


On 01/16/2012 04:59 PM, Maciej (Matchek) Bliziński wrote:
> 2011/12/22 Maciej (Matchek) Bliziński <maciej at opencsw.org>:
>> CMake Error at cmake/ssl.cmake:83 (MESSAGE):
>>  Cannot find appropriate system libraries for SSL.  Use WITH_SSL=bundled to
>>  enable SSL support
>> Call Stack (most recent call first):
>>  CMakeLists.txt:255 (MYSQL_CHECK_SSL)
> 
> I found the MySQL-5.5 source code repository. Is CMakeLists.txt file
> the main one? If so, here's the link:
> 
> http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/CMakeLists.txt
> 
> Another one that seems relevant, is this:
> 
> http://bazaar.launchpad.net/~mysql/mysql-server/5.5/view/head:/cmake/ssl.cmake
> 
> Could anyone look and make suggestions how to proceed with debugging?
> 
> Maciej


Definitely a bug in MySQL. They should be setting
CMAKE_REQUIRED_INCLUDES to ${OPENSSL_INCLUDE_DIR} before invoking the
CHECK_SYMBOL_EXISTS() function/macro in line 72 of cmake/ssl.cmake.
Otherwise CMake will not use the include directory found by
FindOpenSSL.cmake.

HTH

Michael


More information about the CMake mailing list