[cmake-developers] [PATCH] OpenSSL 1.0.2 update
Guillaume Belz
guillaume.belz at gmail.com
Tue Jan 27 16:09:31 EST 2015
Hi,
OpenSSL 1.0.2 was released last week and there is a little change in code,
which impact FindOpenSSL.cmake script. The script use a regex to read the
version of OpenSLL inside opensslv.h file. In the last commit, this file
was modified with a formatting tool and the line 33 was changed from:
# define OPENSSL_VERSION_NUMBER 0x10100000L
to:
#define OPENSSL_VERSION_NUMBER 0x10100000L
To fix that, it's possible to change regex in FindOpenSSL.cmake file in
line 288, from:
REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*")
to:
REGEX "^# *define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*")
It's work on Scientific Linux 7 with OpenSSL 1.0.2 and CMake 3.1.1. I have
not checked on other platforms.
Thanks,
Guillaume
Commit on opensslv.h:
https://github.com/openssl/openssl/blob/0f113f3ee4d629ef9a4a30911b22b224772085e5/crypto/opensslv.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150127/bf155648/attachment.html>
More information about the cmake-developers
mailing list