--- gap/CMakeLists.txt.orig	2017-02-08 01:48:39 UTC
+++ gap/CMakeLists.txt
@@ -215,7 +215,7 @@ else()
   endif()
 
   if(WITH_OPENSSL)
-    pkg_check_modules(OPENSSL openssl>=1.0.1)
+    find_package(OpenSSL 1.0.1)
   elseif(WITH_GNUTLS)
     pkg_check_modules(GNUTLS gnutls>=3.4.0)
   elseif(WITH_GCRYPT)
