aboutsummaryrefslogtreecommitdiff
path: root/ports/minhook/fix-usage.patch
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2020-07-14 01:54:00 +0800
committerGitHub <noreply@github.com>2020-07-13 10:54:00 -0700
commit4953c8a3c0b3f824264b1233f5a2f89a431bdabb (patch)
treea7354a50ef12faebaa3f206c687aa24750687615 /ports/minhook/fix-usage.patch
parent0523b5eb57341e44fc0551900e5803b13686821a (diff)
downloadvcpkg-4953c8a3c0b3f824264b1233f5a2f89a431bdabb.tar.gz
vcpkg-4953c8a3c0b3f824264b1233f5a2f89a431bdabb.zip
[minhook] fix usage issue (#12399)
* fix minhook lib faild to load when tring to be included in a project * fix usage issue
Diffstat (limited to 'ports/minhook/fix-usage.patch')
-rw-r--r--ports/minhook/fix-usage.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/ports/minhook/fix-usage.patch b/ports/minhook/fix-usage.patch
new file mode 100644
index 000000000..198b8795d
--- /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")