summaryrefslogtreecommitdiffstats
path: root/externals
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2020-04-16 16:46:33 +0200
committerMarkus Wick <markus@selfnet.de>2020-04-16 16:46:33 +0200
commitfedf750e1b323cab927d08393783927a6db1e912 (patch)
tree13d9ea244610ad2bc5c1d717d688b7a725a6a9f7 /externals
parentinput_common: Use the CMake target instead of the variable. (diff)
downloadyuzu-fedf750e1b323cab927d08393783927a6db1e912.tar
yuzu-fedf750e1b323cab927d08393783927a6db1e912.tar.gz
yuzu-fedf750e1b323cab927d08393783927a6db1e912.tar.bz2
yuzu-fedf750e1b323cab927d08393783927a6db1e912.tar.lz
yuzu-fedf750e1b323cab927d08393783927a6db1e912.tar.xz
yuzu-fedf750e1b323cab927d08393783927a6db1e912.tar.zst
yuzu-fedf750e1b323cab927d08393783927a6db1e912.zip
Diffstat (limited to 'externals')
-rw-r--r--externals/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 61ad3487a..a1d0452c3 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -86,7 +86,10 @@ if (ENABLE_WEB_SERVICE)
set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "")
add_subdirectory(libressl EXCLUDE_FROM_ALL)
target_include_directories(ssl INTERFACE ./libressl/include)
- target_compile_definitions(ssl PRIVATE -DHAVE_INET_NTOP)
+ target_compile_definitions(ssl PRIVATE -DHAVE_INET_NTOP)
+ get_directory_property(OPENSSL_LIBRARIES
+ DIRECTORY libressl
+ DEFINITION OPENSSL_LIBS)
# lurlparser
add_subdirectory(lurlparser EXCLUDE_FROM_ALL)
@@ -94,6 +97,8 @@ if (ENABLE_WEB_SERVICE)
# httplib
add_library(httplib INTERFACE)
target_include_directories(httplib INTERFACE ./httplib)
+ target_compile_definitions(httplib INTERFACE -DCPPHTTPLIB_OPENSSL_SUPPORT)
+ target_link_libraries(httplib INTERFACE ${OPENSSL_LIBRARIES})
# JSON
add_library(json-headers INTERFACE)