Skip to content

Commit

Permalink
build: fix compiling for ARM with MSVC but not Visual Studio generator (
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveice10 committed Jan 25, 2024
1 parent d1ed40b commit 1940cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryptopp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ set_source_files_properties(
# Compiler: MSVC
# ------------------------------------------------------------------------------
if(MSVC AND NOT CRYPTOPP_DISABLE_ASM)
if(${CMAKE_GENERATOR_PLATFORM} MATCHES "ARM")
if(${CMAKE_GENERATOR_PLATFORM} MATCHES "ARM" OR CRYPTOPP_ARM32 OR CRYPTOPP_ARMV8)
message(
STATUS
"[cryptopp] Disabling ASM because ARM is specified as target platform."
Expand Down

0 comments on commit 1940cc0

Please sign in to comment.