[CMake] How do you tell FindOpenSSL to find OpenSSL in a non-standard path?
Quanah Gibson-Mount
quanah at zimbra.com
Thu Jun 23 15:31:45 EDT 2011
--On Thursday, June 23, 2011 9:15 PM +0200 Michael Wild <themiwi at gmail.com>
wrote:
> Usually it is better to set CMAKE_PREFIX_PATH to
> /opt/zimbra/openssl-1.0.0d, and then let FindOpenSSL.cmake do its work.
> Without looking at FindOpenSSL.cmake, the -DOPENSSL_LIBRARIES=...
> argument looks fishy to me, because usually XXX_LIBRARIES variables are
> not cached, but a concatenation of various XXX_LIBRARY variables.
Well, that fixes finding the library but not the header:
-- Found OpenSSL: /opt/zimbra/openssl-1.0.0d/lib/libssl.so
-- Looking for SHA512_DIGEST_LENGTH
-- Looking for SHA512_DIGEST_LENGTH - not found.
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:248 (MYSQL_CHECK_SSL)
[root at zre-rhel5-64 mysql]# cd /opt/zimbra/openssl-1.0.0d/include/openssl/
[root at zre-rhel5-64 openssl]# ls -l sha.h
-rw-r--r-- 1 root root 7299 Jun 23 12:25 sha.h
[root at zre-rhel5-64 openssl]# grep SHA512_DIGEST_LENGTH sha.h
#define SHA512_DIGEST_LENGTH 64
I've tried setting CMAKE_INCLUDE_PATH too, but same error. It seems like
for the include files, this is broken.
--Quanah
--
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
More information about the CMake
mailing list