From 7fe01a7b0f3b3f975a852897828da02789790165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Thu, 11 Mar 2021 13:26:37 +0200 Subject: [PATCH 1/1] Depends: Fail if OpenSSL was not found --- Depends.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Depends.cmake b/Depends.cmake index c379fc6d..fa1e8655 100644 --- a/Depends.cmake +++ b/Depends.cmake @@ -29,6 +29,9 @@ else () set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "") add_subdirectory (lib/the_Foundation) add_library (the_Foundation::the_Foundation ALIAS the_Foundation) + if (NOT OPENSSL_FOUND) + message (FATAL_ERROR "OpenSSL is required for TLS. Please check if pkg-config can find openssl.") + endif () endif () find_package (PkgConfig REQUIRED) pkg_check_modules (SDL2 REQUIRED sdl2) -- 2.34.1