blob: aa419d6206e6bb9b9c9976547d081192ab2fd6a5 [file] [log] [blame]
diff -rupN a/crt/aws-crt-cpp/crt/s2n/CMakeLists.txt b/crt/aws-crt-cpp/crt/s2n/CMakeLists.txt
--- a/crt/aws-crt-cpp/crt/s2n/CMakeLists.txt 2023-12-11 13:15:44.264958227 +0100
+++ b/crt/aws-crt-cpp/crt/s2n/CMakeLists.txt 2023-12-11 13:34:38.190054072 +0100
@@ -240,9 +240,9 @@ if (TARGET crypto)
message(STATUS "S2N found target: crypto")
set(LINK_LIB "crypto")
else()
- find_package(crypto REQUIRED)
+ find_package(OpenSSL REQUIRED)
message(STATUS "Using libcrypto from the cmake path")
- set(LINK_LIB "AWS::crypto")
+ set(LINK_LIB "OpenSSL::Crypto")
endif()
if (S2N_INTERN_LIBCRYPTO)
@@ -347,11 +347,11 @@ feature_probe_result(S2N_KYBER512R3_AVX2
if (S2N_INTERN_LIBCRYPTO)
- # Check if the AWS::crypto target has beeen added and handle it
- if (TARGET AWS::crypto)
+ # Check if the OpenSSL::Crypto target has beeen added and handle it
+ if (TARGET OpenSSL::Crypto)
# Get the target library type (shared or static)
- get_target_property(target_type AWS::crypto TYPE)
- message(STATUS "AWS::crypto target type: ${target_type}")
+ get_target_property(target_type OpenSSL::Crypto TYPE)
+ message(STATUS "OpenSSL::Crypto target type: ${target_type}")
# If we didn't find the a target with static library type, fallback to
# existing crypto_STATIC_LIBRARY and crypto_INCLUDE_DIR
@@ -360,8 +360,8 @@ if (S2N_INTERN_LIBCRYPTO)
# The finder module defines these appropriately, but if we go through
# the target config we need to query this information from the target
# first.
- get_target_property(crypto_STATIC_LIBRARY AWS::crypto LOCATION)
- get_target_property(crypto_INCLUDE_DIR AWS::crypto INTERFACE_INCLUDE_DIRECTORIES)
+ get_target_property(crypto_STATIC_LIBRARY OpenSSL::Crypto LOCATION)
+ get_target_property(crypto_INCLUDE_DIR OpenSSL::Crypto INTERFACE_INCLUDE_DIRECTORIES)
endif()
endif()