1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

build/cmake: add option to use system-wide libcurl package (#7882)

This commit is contained in:
Jan Beich 2020-03-28 00:49:31 +00:00 committed by GitHub
parent f5a51599d9
commit 58492ef92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,11 +413,18 @@ endif()
# LLVM
include(llvm.cmake)
# Wolfssl
# CURL
if(USE_SYSTEM_CURL)
message("-- RPCS3: using shared libcurl")
find_package(CURL REQUIRED)
add_library(wolfssl-3-static INTERFACE)
add_library(libcurl INTERFACE)
target_link_libraries(libcurl INTERFACE CURL::libcurl)
else()
message("-- RPCS3: building libcurl + wolfssl submodules")
add_subdirectory(wolfssl EXCLUDE_FROM_ALL)
# Libcurl
add_subdirectory(curl EXCLUDE_FROM_ALL)
endif()
# add nice ALIAS targets for ease of use
add_library(3rdparty::libusb ALIAS usb-1.0-static)