mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
Configure OpenSSL crypto library for aws-sdk-cpp
This commit is contained in:
parent
d726da5d73
commit
01f790020e
1 changed files with 8 additions and 0 deletions
8
external/aws-sdk-cpp.cmake
vendored
8
external/aws-sdk-cpp.cmake
vendored
|
|
@ -21,6 +21,14 @@ set(MINIMIZE_SIZE OFF CACHE BOOL "If enabled, the SDK will be built via
|
||||||
# Save off ${CMAKE_CXX_FLAGS} before modifying compiler settings
|
# Save off ${CMAKE_CXX_FLAGS} before modifying compiler settings
|
||||||
set(CMAKE_CXX_FLAGS_PREV "${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS_PREV "${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
|
# Configure OpenSSL crypto library
|
||||||
|
find_package(OpenSSL)
|
||||||
|
set(crypto_INCLUDE_DIR ${OpenSSL_INCLUDE_DIR})
|
||||||
|
set(crypto_ROOT $<$<CONFIG:Release>:${openssl_PACKAGE_FOLDER_RELEASE}>
|
||||||
|
$<$<CONFIG:Debug>:${openssl_PACKAGE_FOLDER_DEBUG}>)
|
||||||
|
set(crypto_SHARED_LIBRARY_ROOT ${crypto_ROOT}) # libcrypto.so libcrypto.dylib
|
||||||
|
set(crypto_STATIC_LIBRARY_ROOT ${crypto_ROOT}) # libcrypto.a
|
||||||
|
|
||||||
# Fix CMake errors for internal variables not set
|
# Fix CMake errors for internal variables not set
|
||||||
include(aws-sdk-cpp/cmake/compiler_settings.cmake)
|
include(aws-sdk-cpp/cmake/compiler_settings.cmake)
|
||||||
set_msvc_warnings()
|
set_msvc_warnings()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue