Skip to content

Commit

Permalink
fix: Hack cryptopp to make it compile under clang for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ENDERZOMBI102 authored and craftablescience committed Aug 1, 2024
1 parent 72dcdd4 commit 3d06d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/_ext.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ if (NOT TARGET cryptopp::cryptopp)
set(CRYPTOPP_BUILD_TESTING OFF CACHE INTERNAL "")
set(CRYPTOPP_INSTALL OFF CACHE INTERNAL "")
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/cryptopp")
if (WIN32 AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND NOT MSVC)
target_compile_options(cryptopp PRIVATE -mcrc32 -mssse3)
endif()
endif()


Expand Down

0 comments on commit 3d06d8e

Please sign in to comment.