Skip to content

Commit

Permalink
Merge pull request #499 from ffontaine/master
Browse files Browse the repository at this point in the history
CMakeLists.txt: use pkg-config to find openssl
  • Loading branch information
nmoinvaz authored Jun 14, 2020
2 parents 2aa369c + 1fdf5da commit 3ecc5c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,13 @@ endif()

# Check to see if openssl installation is present
if(MZ_OPENSSL)
find_package(OpenSSL)
find_package(PkgConfig)
if(PKGCONFIG_FOUND)
pkg_check_modules(OPENSSL openssl)
endif()
if(NOT OPENSSL_FOUND)
find_package(OpenSSL)
endif()
if (OPENSSL_FOUND)
message(STATUS "Using OpenSSL ${OPENSSL_VERSION}")

Expand Down

0 comments on commit 3ecc5c7

Please sign in to comment.