aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorGuillaume Belz <guillaume.belz@gmail.com>2015-01-27 21:53:54 +0100
committerVincent-Michael <Vincent_Michael@gmx.de>2015-03-08 05:23:45 +0100
commit9ffeb58d094ddba9bffb33a79b33ade9af9f5c00 (patch)
treef92cddcad60a2d0dd95a1a1b993619f0a46ef86f /cmake
parente6e5c2b5010417d2839c55bf075b90edbc51f40e (diff)
FindOpenSSL: fix detection of OpenSSL 1.0.2
Closes #14284
Diffstat (limited to 'cmake')
-rw-r--r--cmake/macros/FindOpenSSL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/macros/FindOpenSSL.cmake b/cmake/macros/FindOpenSSL.cmake
index 1cc34b36a4c..7baa43274ab 100644
--- a/cmake/macros/FindOpenSSL.cmake
+++ b/cmake/macros/FindOpenSSL.cmake
@@ -186,7 +186,7 @@ if (OPENSSL_INCLUDE_DIR)
set(OPENSSL_VERSION "${_OPENSSL_VERSION}")
else (_OPENSSL_VERSION)
file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str
- REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")
+ REGEX "^# *define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")
# 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.