aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lief/fix-liefconfig-cmake-in.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/lief/fix-liefconfig-cmake-in.patch')
-rw-r--r--vcpkg/ports/lief/fix-liefconfig-cmake-in.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/lief/fix-liefconfig-cmake-in.patch b/vcpkg/ports/lief/fix-liefconfig-cmake-in.patch
new file mode 100644
index 0000000..b600ce4
--- /dev/null
+++ b/vcpkg/ports/lief/fix-liefconfig-cmake-in.patch
@@ -0,0 +1,22 @@
+diff --git a/cmake/LIEFConfig.cmake.in b/cmake/LIEFConfig.cmake.in
+index 562fda16..220208c7 100644
+--- a/cmake/LIEFConfig.cmake.in
++++ b/cmake/LIEFConfig.cmake.in
+@@ -76,7 +76,7 @@ macro(LIEF_load_targets lib_type)
+ return()
+ endif ()
+
+- if("${lib_type}" STREQUAL "static")
++ if(1)
+ # Need to find all dependencies even if they're private when LIEF is
+ # compiled statically
+ include(CMakeFindDependencyMacro)
+@@ -105,6 +105,8 @@ macro(LIEF_load_targets lib_type)
+ find_dependency(tl-expected)
+ endif()
+
++ find_dependency(fmt)
++ check_required_components(lief)
+ endif()
+
+ # Include the respective targets file