From 18cef447e51d886631ad537951c8d05804d131b5 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 11 Mar 2021 13:26:37 +0200 Subject: 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) -- cgit v1.2.3