Skip to content

Commit

Permalink
fix: add cpuid64.asm if it exists in the crypto++ source tree
Browse files Browse the repository at this point in the history
fixes #103
  • Loading branch information
abdes committed Oct 15, 2023
1 parent b4d3060 commit 80d24bb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cryptopp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,15 @@ if(MSVC AND NOT CRYPTOPP_DISABLE_ASM)
${cryptopp_SOURCE_DIR}/x64dll.asm
${cryptopp_SOURCE_DIR}/x64masm.asm
)
# Add the 'cpuid64.asm' source file only if it exists.
# This file has been added post-8.9.0
if(EXISTS "${cryptopp_SOURCE_DIR}/cpuid64.asm")
list(
APPEND
cryptopp_SOURCES_ASM
${cryptopp_SOURCE_DIR}/cpuid64.asm
)
endif()
set_source_files_properties(
${cryptopp_SOURCES_ASM}
PROPERTIES COMPILE_DEFINITIONS "_M_X64"
Expand Down

0 comments on commit 80d24bb

Please sign in to comment.