From 3d06d8e7e6fbc833d39e3b613014b1894a54f452 Mon Sep 17 00:00:00 2001 From: ENDERZOMBI102 Date: Fri, 2 Aug 2024 01:28:45 +0200 Subject: [PATCH] fix: Hack cryptopp to make it compile under clang for windows --- ext/_ext.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/_ext.cmake b/ext/_ext.cmake index 280c2766c..cbee8a6df 100644 --- a/ext/_ext.cmake +++ b/ext/_ext.cmake @@ -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()