cmake: Add options to disable OpenSSL and GNUTLS
@@ -67,8 +67,16 @@ foreach(_build_type "Release" "MinSizeRel" "RelWithDebInfo")
endforeach()
+if(WITHOUT_GNUTLS)
+ set(GNUTLS_FOUND FALSE)
+else()
find_package(GnuTLS 3.6.12)
+endif()
+if(WITHOUT_OPENSSL)
+ set(OPENSSL_FOUND FALSE)
+else()
find_package(OpenSSL 1.1.1)
+endif()
find_package(Libev 4.11)
find_package(Libnghttp3 0.0.0)
find_package(CUnit 2.1)
