13 lines
686 B
Diff
13 lines
686 B
Diff
--- a/vendor/cpp-httplib/CMakeLists.txt
|
|
+++ b/vendor/cpp-httplib/CMakeLists.txt
|
|
@@ -46,6 +46,9 @@
|
|
message(STATUS "OpenSSL found: ${OPENSSL_VERSION}")
|
|
target_compile_definitions(${TARGET} PUBLIC CPPHTTPLIB_OPENSSL_SUPPORT)
|
|
target_link_libraries(${TARGET} PUBLIC OpenSSL::SSL OpenSSL::Crypto)
|
|
+ if(WIN32)
|
|
+ target_link_libraries(${TARGET} PUBLIC crypt32)
|
|
+ endif()
|
|
if (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|
target_compile_definitions(${TARGET} PUBLIC CPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN)
|
|
find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation REQUIRED)
|