mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
[cpu] set AES definition on MSVC
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
7a8aa37eb2
commit
ebe9fd90af
1 changed files with 7 additions and 5 deletions
|
@ -198,13 +198,15 @@ endif()
|
|||
# Note: AES-NI and AVX is available on x86-based CPU's.
|
||||
# Here also ARM64 implementation, but currently we don't support it.
|
||||
# MSVC is not supported.
|
||||
if(MSVC)
|
||||
message(STATUS "AES-NI is not supported on MSVC, option was disabled")
|
||||
set(WITH_AESNI OFF)
|
||||
endif()
|
||||
#if(MSVC)
|
||||
# message(STATUS "AES-NI is not supported on MSVC, option was disabled")
|
||||
# set(WITH_AESNI OFF)
|
||||
#endif()
|
||||
|
||||
if(WITH_AESNI AND (ARCHITECTURE MATCHES "x86_64" OR ARCHITECTURE MATCHES "i386"))
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
|
||||
if(NOT MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
|
||||
endif()
|
||||
add_definitions(-D__AES__)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue