Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,7 @@ if (BUILD_DEPS)
)

set(UNSAFE_TREAT_WARNINGS_AS_ERRORS OFF CACHE BOOL "Disable warnings-as-errors when building S2N")
# On Intel Macs, Homebrew installs to /usr/local which is in the default header search path.
# Without this, s2n's libcrypto detection picks up Homebrew's OpenSSL instead of bundled aws-lc.
# ARM Macs use /opt/homebrew (not in default search paths) so they don't need this.
if(APPLE AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(_AWS_CRT_PREV_NO_SYSTEM_FROM_IMPORTED ${CMAKE_NO_SYSTEM_FROM_IMPORTED})
set(CMAKE_NO_SYSTEM_FROM_IMPORTED ON)
endif()
add_subdirectory(crt/s2n)
if(APPLE AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(CMAKE_NO_SYSTEM_FROM_IMPORTED ${_AWS_CRT_PREV_NO_SYSTEM_FROM_IMPORTED})
unset(_AWS_CRT_PREV_NO_SYSTEM_FROM_IMPORTED)
endif()
endif()
add_subdirectory(crt/aws-c-sdkutils)
add_subdirectory(crt/aws-c-io)
Expand Down
Loading