Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ include("GNUInstallDirs")

if(NOT FUNCHOOK_CPU)
set(FUNCHOOK_CPU ${CMAKE_SYSTEM_PROCESSOR})
if (FUNCHOOK_CPU STREQUAL x86_64 OR FUNCHOOK_CPU MATCHES "i.86" OR FUNCHOOK_CPU STREQUAL AMD64)
if (FUNCHOOK_CPU MATCHES "x86_64" OR FUNCHOOK_CPU MATCHES "i.86" OR FUNCHOOK_CPU MATCHES "AMD64")
set(FUNCHOOK_CPU x86)
endif ()
if (FUNCHOOK_CPU STREQUAL aarch64)
if (FUNCHOOK_CPU MATCHES "aarch64")
set(FUNCHOOK_CPU arm64)
endif ()
endif ()

if (FUNCHOOK_CPU STREQUAL arm64)
if (FUNCHOOK_CPU MATCHES "arm64")
set(FUNCHOOK_DEFAULT_DISASM "capstone")
else ()
set(FUNCHOOK_DEFAULT_DISASM "distorm")
Expand Down