From 17efc2fb931c821e34672335a7e27d9d5f63116a Mon Sep 17 00:00:00 2001 From: Adrien Bourdeaux Date: Thu, 15 May 2025 16:17:36 -0400 Subject: [PATCH] [minhook] fix usage (#45531) --- ports/minhook/fix-usage.patch | 10 ++++++++++ ports/minhook/portfile.cmake | 2 ++ versions/m-/minhook.json | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ports/minhook/fix-usage.patch diff --git a/ports/minhook/fix-usage.patch b/ports/minhook/fix-usage.patch new file mode 100644 index 0000000000..198b8795df --- /dev/null +++ b/ports/minhook/fix-usage.patch @@ -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") diff --git a/ports/minhook/portfile.cmake b/ports/minhook/portfile.cmake index 55bfe8aef1..230002bb5c 100644 --- a/ports/minhook/portfile.cmake +++ b/ports/minhook/portfile.cmake @@ -14,6 +14,8 @@ vcpkg_from_github( REF "v${VERSION}" SHA512 8a33233598b56ad9da44d22d470c2432f68364dac31bc719fcd6b085e681fa10ddd41865fbde056ee7f4e7a075cc135344b6bf444eadbd7e7314ee1bedfd89b5 HEAD_REF master + PATCHES + fix-usage.patch ) vcpkg_cmake_configure( diff --git a/versions/m-/minhook.json b/versions/m-/minhook.json index 0c8e96dea6..844f5a245b 100644 --- a/versions/m-/minhook.json +++ b/versions/m-/minhook.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "1d39d2cd5dbb40ee8a5a421c74eceee090c88618", + "git-tree": "f2e0ee0a631c02f725740c3267b05e3eb1cabdf3", "version": "1.3.4", "port-version": 0 },