diff --git a/external/aws-sdk-cpp.cmake b/external/aws-sdk-cpp.cmake index e8332c4a..f88df9ca 100644 --- a/external/aws-sdk-cpp.cmake +++ b/external/aws-sdk-cpp.cmake @@ -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)