Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz committed Mar 15, 2024
1 parent 78e2970 commit 9330277
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ option(SET_SSL_CALLBACKS "Set SSL thread and lock callbacks." OFF)

if (WIN32)
set(BUILD_STATIC TRUE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
endif()

if (BUILD_STATIC)
Expand Down Expand Up @@ -336,17 +337,17 @@ endif()
set(CPRODUCER_COMMON_TLS_OPTION KVS_USE_OPENSSL)

if(WIN32)
# set(PRODUCER_CRYPTO_LIBRARY
# OpenSSL::Crypto
# OpenSSL::SSL)
set(PRODUCER_CRYPTO_LIBRARY ssl crypto)
# set(PRODUCER_CRYPTO_LIBRARIES
# OpenSSL::Crypto
# OpenSSL::SSL)
set(PRODUCER_CRYPTO_LIBRARIES crypto ssl)
else()
set(PRODUCER_CRYPTO_LIBRARY ssl crypto)
set(PRODUCER_CRYPTO_LIBRARIES ssl crypto)
endif()

if (USE_MBEDTLS)
set(CPRODUCER_COMMON_TLS_OPTION KVS_USE_MBEDTLS)
set(PRODUCER_CRYPTO_LIBRARY MbedTLS MbedCrypto)
set(PRODUCER_CRYPTO_LIBRARIES MbedTLS MbedCrypto)
endif()

# TODO: Confirm this is ok to remove
Expand Down Expand Up @@ -384,8 +385,7 @@ endif()

if(BUILD_COMMON_CURL)
if(WIN32)
#set(CURL_LIBRARIES CURL::libcurl)
set(CURL_LIBRARIES curl-d)
set(CURL_LIBRARIES libcurl)
else()
set(CURL_LIBRARIES curl)
endif()
Expand Down Expand Up @@ -421,11 +421,11 @@ if(BUILD_COMMON_CURL)
# TODO: I'd like to know why there is no openssl library and we instead have to use
# ssl and crypto (openssl's dependencies).
message("CURL_LIBRARIES: ${CURL_LIBRARIES}")
message("PRODUCER_CRYPTO_LIBRARY: ${PRODUCER_CRYPTO_LIBRARY}")
message("PRODUCER_CRYPTO_LIBRARIES: ${PRODUCER_CRYPTO_LIBRARIES}")

target_link_libraries(cproducer
PUBLIC kvspic
PRIVATE ${CURL_LIBRARIES} ${PRODUCER_CRYPTO_LIBRARY})
PRIVATE ${PRODUCER_CRYPTO_LIBRARIES} ${CURL_LIBRARIES})

message("CMAKE_INSTALL_LIBDIR: ${CMAKE_INSTALL_LIBDIR}")
install(
Expand Down

0 comments on commit 9330277

Please sign in to comment.