diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-11 13:26:37 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-11 13:26:37 +0200 |
commit | 18cef447e51d886631ad537951c8d05804d131b5 (patch) | |
tree | a3585b27c2ee8af65a7eb19147b2f463fa5dec4c | |
parent | 82e9818ef5852e49d09aec87fd30f3efaaf3750c (diff) |
Depends: Fail if OpenSSL was not found
-rw-r--r-- | Depends.cmake | 3 |
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 () | ||
32 | endif () | 35 | endif () |
33 | find_package (PkgConfig REQUIRED) | 36 | find_package (PkgConfig REQUIRED) |
34 | pkg_check_modules (SDL2 REQUIRED sdl2) | 37 | pkg_check_modules (SDL2 REQUIRED sdl2) |