externals: Remove need for cryptopp build. (#2707)

This commit is contained in:
squidbus 2025-03-29 01:32:06 -07:00 committed by GitHub
parent 78c8bca2bb
commit be7d646e83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1398 additions and 55 deletions

View file

@ -26,21 +26,7 @@ if (NOT TARGET fmt::fmt)
add_subdirectory(fmt)
endif()
# CryptoPP
if (NOT TARGET cryptopp::cryptopp)
set(CRYPTOPP_INSTALL OFF)
set(CRYPTOPP_BUILD_TESTING OFF)
set(CRYPTOPP_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/cryptopp)
# cryptopp instruction set checks do not account for added compile options,
# so disable extensions in the library config to match our chosen target CPU.
set(CRYPTOPP_DISABLE_AESNI ON)
set(CRYPTOPP_DISABLE_AVX2 ON)
add_subdirectory(cryptopp-cmake)
file(COPY cryptopp DESTINATION cryptopp FILES_MATCHING PATTERN "*.h")
# remove externals/cryptopp from include directories because it contains a conflicting zlib.h file
set_target_properties(cryptopp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}/cryptopp")
endif()
# FFmpeg
if (NOT TARGET FFmpeg::ffmpeg)
add_subdirectory(ffmpeg-core)
add_library(FFmpeg::ffmpeg ALIAS ffmpeg)

1
externals/cryptopp vendored

@ -1 +0,0 @@
Subproject commit effed0d0b865afc23ed67e0916f83734e4b9b3b7

@ -1 +0,0 @@
Subproject commit 2c384c28265a93358a2455e610e76393358794df