diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bd3e22b..fa34810 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -29,7 +29,11 @@ set(UHTTPD_HAVE_MBEDTLS_CONFIG 0) if(NOT UHTTPD_SSL_SUPPORT) set(UHTTPD_SSL_SUPPORT_CONFIG 0) else() - find_package(OpenSSL) + find_package(PkgConfig QUIET) + pkg_check_modules(OPENSSL QUIET openssl) + if (NOT OPENSSL_FOUND) + find_package(OpenSSL) + endif() find_package(WolfSSL) find_package(MbedTLS)