We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44098c3 commit 77ca3aeCopy full SHA for 77ca3ae
CMakeLists.txt
@@ -101,10 +101,14 @@ else ()
101
elseif(NOT USE_OPENSSL AND IN_SOURCE_BUILD)
102
if (TARGET crypto)
103
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)
109
else()
110
message(FATAL_ERROR "Target crypto is not defined, failed to find libcrypto.")
111
endif()
- set(PLATFORM_LIBS crypto)
112
113
# note aws_use_package() does this for you, except it appends to the public link targets
114
# which we probably don't want for this case where we want the crypto dependency private
0 commit comments