externals: Update cryptopp to 6.0.0
MSVC C++17 support
This commit is contained in:
17
externals/cryptopp/CMakeLists.txt
vendored
17
externals/cryptopp/CMakeLists.txt
vendored
@ -157,11 +157,18 @@ set(cryptopp_SOURCES
|
|||||||
cryptopp/queue.cpp
|
cryptopp/queue.cpp
|
||||||
cryptopp/randpool.cpp
|
cryptopp/randpool.cpp
|
||||||
cryptopp/rdtables.cpp
|
cryptopp/rdtables.cpp
|
||||||
|
cryptopp/rijndael-simd.cpp
|
||||||
cryptopp/rijndael.cpp
|
cryptopp/rijndael.cpp
|
||||||
cryptopp/rng.cpp
|
cryptopp/rng.cpp
|
||||||
|
cryptopp/sha-simd.cpp
|
||||||
cryptopp/sha.cpp
|
cryptopp/sha.cpp
|
||||||
|
cryptopp/sse-simd.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (MINGW OR WIN32)
|
||||||
|
list(APPEND cryptopp_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/cryptopp/winpipes.cpp)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if(MSVC AND NOT CRYPTOPP_DISABLE_ASM)
|
if(MSVC AND NOT CRYPTOPP_DISABLE_ASM)
|
||||||
if(${CMAKE_GENERATOR} MATCHES ".*ARM")
|
if(${CMAKE_GENERATOR} MATCHES ".*ARM")
|
||||||
message(STATUS "Disabling ASM because ARM is specified as target platform.")
|
message(STATUS "Disabling ASM because ARM is specified as target platform.")
|
||||||
@ -181,6 +188,16 @@ if(MSVC AND NOT CRYPTOPP_DISABLE_ASM)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT CRYPTOPP_DISABLE_ASM)
|
||||||
|
if(${CMAKE_GENERATOR} MATCHES ".*ARM")
|
||||||
|
message(STATUS "Disabling ASM because ARM is specified as target platform.")
|
||||||
|
else()
|
||||||
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/cryptopp/rijndael-simd.cpp PROPERTIES COMPILE_FLAGS "-msse4.1 -maes")
|
||||||
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/cryptopp/sha-simd.cpp PROPERTIES COMPILE_FLAGS "-msse4.2 -msha")
|
||||||
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/cryptopp/sse-simd.cpp PROPERTIES COMPILE_FLAGS "-msse2")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
#============================================================================
|
#============================================================================
|
||||||
# Compile targets
|
# Compile targets
|
||||||
#============================================================================
|
#============================================================================
|
||||||
|
2
externals/cryptopp/cryptopp
vendored
2
externals/cryptopp/cryptopp
vendored
Submodule externals/cryptopp/cryptopp updated: 24bc2b8567...b6c6684451
Reference in New Issue
Block a user