Commit b41b663 1 parent 63c642e commit b41b663 Copy full SHA for b41b663
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1028,6 +1028,8 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.28)
1028
1028
endif ()
1029
1029
1030
1030
macro (prepare_fetchcontent)
1031
+ # CACHE is for products that still use OLD as CMP0077 (option()
1032
+ # honors normal variables).
1031
1033
set (BUILD_SHARED_LIBS
1032
1034
OFF
1033
1035
CACHE BOOL "" FORCE)
@@ -5041,10 +5043,10 @@ function(build_awssdk)
5041
5043
message (STATUS "Building AWS SDK for C++ from source" )
5042
5044
5043
5045
set (AWSSDK_PRODUCTS aws-c-common aws-checksums)
5044
- # s2n-tls only needed on Linux.
5046
+ # aws-lc and s2n-tls only needed on Linux.
5045
5047
# We can use LINUX with CMake 3.25 or later.
5046
5048
if (UNIX AND NOT APPLE )
5047
- list (APPEND AWSSDK_PRODUCTS s2n-tls)
5049
+ list (APPEND AWSSDK_PRODUCTS aws-lc s2n-tls)
5048
5050
endif ()
5049
5051
list (APPEND
5050
5052
AWSSDK_PRODUCTS
@@ -5110,6 +5112,14 @@ function(build_awssdk)
5110
5112
ON
5111
5113
CACHE BOOL "" FORCE)
5112
5114
5115
+ # For s2n-tls
5116
+ set (crypto_STATIC_LIBRARY
5117
+ "$<TARGET_FILE:crypto>"
5118
+ CACHE STRING "" FORCE)
5119
+ set (S2N_INTERN_LIBCRYPTO
5120
+ ON
5121
+ CACHE BOOL "" FORCE)
5122
+
5113
5123
set (AWSSDK_LINK_LIBRARIES)
5114
5124
foreach (AWSSDK_PRODUCT ${AWSSDK_PRODUCTS} )
5115
5125
fetchcontent_makeavailable(${AWSSDK_PRODUCT} )
You can’t perform that action at this time.
0 commit comments