Browse Source

Merge topic 'OpenSSL_102'

c5d9a828 FindOpenSSL: fix detection of OpenSSL 1.0.2
Brad King 11 years ago
parent
commit
de4ccee75a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindOpenSSL.cmake

+ 1 - 1
Modules/FindOpenSSL.cmake

@@ -285,7 +285,7 @@ endfunction()
 if (OPENSSL_INCLUDE_DIR)
 if (OPENSSL_INCLUDE_DIR)
   if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h")
   if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h")
     file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str
     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 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.
     # The status gives if this is a developer or prerelease and is ignored here.