Skip to content

Commit

Permalink
Use prebuilt aws-lc (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfod authored Aug 12, 2024
1 parent 44098c3 commit 77ca3ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,14 @@ else ()
elseif(NOT USE_OPENSSL AND IN_SOURCE_BUILD)
if (TARGET crypto)
message(STATUS "Using libcrypto from AWS-LC")
set(PLATFORM_LIBS crypto)
elseif(AWSLC_PREBUILT)
message(STATUS "Using prebuilt libcrypto from AWS-LC")
find_package(crypto REQUIRED)
set(PLATFORM_LIBS AWS::crypto)
else()
message(FATAL_ERROR "Target crypto is not defined, failed to find libcrypto.")
endif()
set(PLATFORM_LIBS crypto)
else()
# note aws_use_package() does this for you, except it appends to the public link targets
# which we probably don't want for this case where we want the crypto dependency private
Expand Down

0 comments on commit 77ca3ae

Please sign in to comment.