Skip to content

Commit 77ca3ae

Browse files
authored
Use prebuilt aws-lc (#197)
1 parent 44098c3 commit 77ca3ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,14 @@ else ()
101101
elseif(NOT USE_OPENSSL AND IN_SOURCE_BUILD)
102102
if (TARGET crypto)
103103
message(STATUS "Using libcrypto from AWS-LC")
104+
set(PLATFORM_LIBS crypto)
105+
elseif(AWSLC_PREBUILT)
106+
message(STATUS "Using prebuilt libcrypto from AWS-LC")
107+
find_package(crypto REQUIRED)
108+
set(PLATFORM_LIBS AWS::crypto)
104109
else()
105110
message(FATAL_ERROR "Target crypto is not defined, failed to find libcrypto.")
106111
endif()
107-
set(PLATFORM_LIBS crypto)
108112
else()
109113
# note aws_use_package() does this for you, except it appends to the public link targets
110114
# which we probably don't want for this case where we want the crypto dependency private

0 commit comments

Comments
 (0)