Skip to content

Commit

Permalink
fix(cmake/windows): static link MinHook (#3537)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog authored Jan 15, 2025
1 parent d4052dc commit 7f0351d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/dependencies/windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 7f0351d

Please sign in to comment.