mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
build/cmake: add option to use system-wide libcurl package (#7882)
This commit is contained in:
parent
f5a51599d9
commit
58492ef92d
17
3rdparty/CMakeLists.txt
vendored
17
3rdparty/CMakeLists.txt
vendored
@ -413,11 +413,18 @@ endif()
|
|||||||
# LLVM
|
# LLVM
|
||||||
include(llvm.cmake)
|
include(llvm.cmake)
|
||||||
|
|
||||||
# Wolfssl
|
# CURL
|
||||||
add_subdirectory(wolfssl EXCLUDE_FROM_ALL)
|
if(USE_SYSTEM_CURL)
|
||||||
|
message("-- RPCS3: using shared libcurl")
|
||||||
# Libcurl
|
find_package(CURL REQUIRED)
|
||||||
add_subdirectory(curl EXCLUDE_FROM_ALL)
|
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)
|
||||||
|
add_subdirectory(curl EXCLUDE_FROM_ALL)
|
||||||
|
endif()
|
||||||
|
|
||||||
# add nice ALIAS targets for ease of use
|
# add nice ALIAS targets for ease of use
|
||||||
add_library(3rdparty::libusb ALIAS usb-1.0-static)
|
add_library(3rdparty::libusb ALIAS usb-1.0-static)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user