dolphin/Externals/curl/lib/CMakeLists.txt
Shawn Hoffman c3b64012d1 replace zlib with zlib-ng
since the benefits are so high, don't link with shared zlib
2022-07-24 14:33:37 -07:00

19 lines
432 B
CMake

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-DUSE_SCHANNEL -DUSE_WINDOWS_SSPI)
else()
add_definitions(-DHAVE_CONFIG_H)
endif()
include_directories(.)
file(GLOB SRCS *.c vauth/*.c vtls/*.c)
add_library(
curl
STATIC
${SRCS}
)
dolphin_disable_warnings_msvc(curl)
target_link_libraries(curl ${MBEDTLS_LIBRARIES} zlibstatic)
target_compile_definitions(curl PUBLIC CURL_STATICLIB PRIVATE CURL_DISABLE_LDAP)