build(windows): add arm64 support (#3905)

Signed-off-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
Signed-off-by: Coia Prant <coiaprant@gmail.com>
Co-authored-by: Ricky8955555 <rkmiao@duck.com>
Co-authored-by: Mike Fara <mjfara@gmail.com>
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
Coia Prant
2026-02-08 10:03:05 +08:00
committed by GitHub
parent cdc444314f
commit d591643706
20 changed files with 242 additions and 56 deletions
+11
View File
@@ -163,4 +163,15 @@ if (WIN32)
# prefer static libraries since we're linking statically
# this fixes libcurl linking errors when using non MSYS2 version of CMake
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_SEARCH_START_STATIC 1)
# Copy minhook-detours DLL to test binary directory for ARM64
if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "AMD64" AND DEFINED _MINHOOK_DLL)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_MINHOOK_DLL}"
"${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Copying minhook-detours DLL to test binary directory"
VERBATIM
)
endif()
endif ()