From c2b7361e303e2b32927d30dd4cc0822f072e7636 Mon Sep 17 00:00:00 2001 From: FrogTheFrog Date: Wed, 15 Jan 2025 20:30:29 +0200 Subject: [PATCH] fix(cmake/windows): static link MinHook --- cmake/dependencies/windows.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/dependencies/windows.cmake b/cmake/dependencies/windows.cmake index 8d7e32b37c6..11a40ecf481 100644 --- a/cmake/dependencies/windows.cmake +++ b/cmake/dependencies/windows.cmake @@ -4,9 +4,9 @@ find_package(nlohmann_json CONFIG 3.11 REQUIRED) # Make sure MinHook is installed -find_library(MINHOOK_LIBRARY minhook REQUIRED) +find_library(MINHOOK_LIBRARY libMinHook.a REQUIRED) find_path(MINHOOK_INCLUDE_DIR MinHook.h PATH_SUFFIXES include REQUIRED) -add_library(minhook::minhook UNKNOWN IMPORTED) +add_library(minhook::minhook STATIC IMPORTED) set_property(TARGET minhook::minhook PROPERTY IMPORTED_LOCATION ${MINHOOK_LIBRARY}) target_include_directories(minhook::minhook INTERFACE ${MINHOOK_INCLUDE_DIR})