--- gap/CMakeLists.txt.orig	2020-12-27 21:40:54 UTC
+++ gap/CMakeLists.txt
@@ -242,7 +242,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)
