diff options
Diffstat (limited to 'externals/CMakeLists.txt')
| -rw-r--r-- | externals/CMakeLists.txt | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index e01ff6930..421b35890 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt | |||
| @@ -73,17 +73,20 @@ if (NOT LIBZIP_FOUND) | |||
| 73 | endif() | 73 | endif() |
| 74 | 74 | ||
| 75 | if (ENABLE_WEB_SERVICE) | 75 | if (ENABLE_WEB_SERVICE) |
| 76 | # LibreSSL | 76 | find_package(OpenSSL 1.1) |
| 77 | set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "") | 77 | if (OPENSSL_FOUND) |
| 78 | add_subdirectory(libressl EXCLUDE_FROM_ALL) | 78 | set(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto) |
| 79 | target_include_directories(ssl INTERFACE ./libressl/include) | 79 | else() |
| 80 | target_compile_definitions(ssl PRIVATE -DHAVE_INET_NTOP) | 80 | # LibreSSL |
| 81 | get_directory_property(OPENSSL_LIBRARIES | 81 | set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "") |
| 82 | DIRECTORY libressl | 82 | set(OPENSSLDIR "/etc/ssl/") |
| 83 | DEFINITION OPENSSL_LIBS) | 83 | add_subdirectory(libressl EXCLUDE_FROM_ALL) |
| 84 | 84 | target_include_directories(ssl INTERFACE ./libressl/include) | |
| 85 | # lurlparser | 85 | target_compile_definitions(ssl PRIVATE -DHAVE_INET_NTOP) |
| 86 | add_subdirectory(lurlparser EXCLUDE_FROM_ALL) | 86 | get_directory_property(OPENSSL_LIBRARIES |
| 87 | DIRECTORY libressl | ||
| 88 | DEFINITION OPENSSL_LIBS) | ||
| 89 | endif() | ||
| 87 | 90 | ||
| 88 | # httplib | 91 | # httplib |
| 89 | add_library(httplib INTERFACE) | 92 | add_library(httplib INTERFACE) |