mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 18:50:05 +00:00
Specify to AWS SDK which crypto library to use
This commit is contained in:
parent
27b2d79a65
commit
6e13ed2c85
1 changed files with 1 additions and 13 deletions
14
external/aws-sdk-cpp.cmake
vendored
14
external/aws-sdk-cpp.cmake
vendored
|
|
@ -23,19 +23,7 @@ set(CMAKE_CXX_FLAGS_PREV "${CMAKE_CXX_FLAGS}")
|
|||
|
||||
# Configure OpenSSL crypto library
|
||||
find_package(OpenSSL)
|
||||
set(crypto_INCLUDE_DIR ${OpenSSL_INCLUDE_DIR})
|
||||
|
||||
# FIXME:
|
||||
# Cannot use a generator expression here, since this is needed at config time.
|
||||
# But, this breaks multi-config. Need to find a better solution.
|
||||
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
set(crypto_ROOT ${openssl_PACKAGE_FOLDER_DEBUG})
|
||||
else()
|
||||
set(crypto_ROOT ${openssl_PACKAGE_FOLDER_RELEASE})
|
||||
endif()
|
||||
|
||||
set(crypto_SHARED_LIBRARY_ROOT ${crypto_ROOT}) # libcrypto.so libcrypto.dylib
|
||||
set(crypto_STATIC_LIBRARY_ROOT ${crypto_ROOT}) # libcrypto.a
|
||||
add_library(crypto ALIAS OpenSSL::Crypto)
|
||||
|
||||
# Fix CMake errors for internal variables not set
|
||||
include(aws-sdk-cpp/cmake/compiler_settings.cmake)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue