summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-11 13:26:37 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-11 13:26:37 +0200
commit18cef447e51d886631ad537951c8d05804d131b5 (patch)
treea3585b27c2ee8af65a7eb19147b2f463fa5dec4c
parent82e9818ef5852e49d09aec87fd30f3efaaf3750c (diff)
Depends: Fail if OpenSSL was not found
-rw-r--r--Depends.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Depends.cmake b/Depends.cmake
index c379fc6d..fa1e8655 100644
--- a/Depends.cmake
+++ b/Depends.cmake
@@ -29,6 +29,9 @@ else ()
29 set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "") 29 set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "")
30 add_subdirectory (lib/the_Foundation) 30 add_subdirectory (lib/the_Foundation)
31 add_library (the_Foundation::the_Foundation ALIAS the_Foundation) 31 add_library (the_Foundation::the_Foundation ALIAS the_Foundation)
32 if (NOT OPENSSL_FOUND)
33 message (FATAL_ERROR "OpenSSL is required for TLS. Please check if pkg-config can find openssl.")
34 endif ()
32endif () 35endif ()
33find_package (PkgConfig REQUIRED) 36find_package (PkgConfig REQUIRED)
34pkg_check_modules (SDL2 REQUIRED sdl2) 37pkg_check_modules (SDL2 REQUIRED sdl2)