[minhook] fix usage (#45531)

This commit is contained in:
Adrien Bourdeaux 2025-05-15 16:17:36 -04:00 committed by GitHub
parent fcc39da302
commit 17efc2fb93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,10 @@
diff --git a/cmake/minhook-config.cmake.in b/cmake/minhook-config.cmake.in
index 14e6463..28fa17c 100644
--- a/cmake/minhook-config.cmake.in
+++ b/cmake/minhook-config.cmake.in
@@ -36,4 +36,4 @@ set(MINHOOK_FOUND ON)
set_and_check(MINHOOK_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/")
set_and_check(MINHOOK_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib")
-include("${PACKAGE_PREFIX_DIR}/lib/minhook/minhook-targets.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/minhook-targets.cmake")

View File

@ -14,6 +14,8 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 8a33233598b56ad9da44d22d470c2432f68364dac31bc719fcd6b085e681fa10ddd41865fbde056ee7f4e7a075cc135344b6bf444eadbd7e7314ee1bedfd89b5
HEAD_REF master
PATCHES
fix-usage.patch
)
vcpkg_cmake_configure(

View File

@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "1d39d2cd5dbb40ee8a5a421c74eceee090c88618",
"git-tree": "f2e0ee0a631c02f725740c3267b05e3eb1cabdf3",
"version": "1.3.4",
"port-version": 0
},