diff options
author | Guillaume Belz <guillaume.belz@gmail.com> | 2015-01-27 21:53:54 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2015-01-27 21:53:54 (GMT) |
commit | c5d9a8283cfac15b4a5a07f18d5eb10c1f388505 (patch) | |
tree | 8d8f3955a7799e445753c02dc85f1724860ace35 | |
parent | 57622bd19d3fd013038d34f497b106a7e2bfd26d (diff) | |
download | CMake-c5d9a8283cfac15b4a5a07f18d5eb10c1f388505.zip CMake-c5d9a8283cfac15b4a5a07f18d5eb10c1f388505.tar.gz CMake-c5d9a8283cfac15b4a5a07f18d5eb10c1f388505.tar.bz2 |
FindOpenSSL: fix detection of OpenSSL 1.0.2
-rw-r--r-- | Modules/FindOpenSSL.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake index 340b417..6b4f985 100644 --- a/Modules/FindOpenSSL.cmake +++ b/Modules/FindOpenSSL.cmake @@ -279,7 +279,7 @@ if (OPENSSL_INCLUDE_DIR) set(OPENSSL_VERSION "${_OPENSSL_VERSION}") elseif(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h") file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str - REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*") + REGEX "^# *define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*") # The version number is encoded as 0xMNNFFPPS: major minor fix patch status # The status gives if this is a developer or prerelease and is ignored here. |