aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lief/fix-cmakelists.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lief/fix-cmakelists.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/lief/fix-cmakelists.patch')
-rw-r--r--vcpkg/ports/lief/fix-cmakelists.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/lief/fix-cmakelists.patch b/vcpkg/ports/lief/fix-cmakelists.patch
new file mode 100644
index 0000000..7ab535a
--- /dev/null
+++ b/vcpkg/ports/lief/fix-cmakelists.patch
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1b9d3701..dc7557fd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -313,7 +313,9 @@ else()
+ ${CMAKE_CURRENT_BINARY_DIR}/include/LIEF/third-party/internal/span.hpp)
+ endif()
+
+-target_link_libraries(LIB_LIEF PRIVATE lief_spdlog)
++find_package(fmt CONFIG REQUIRED)
++find_package(spdlog CONFIG REQUIRED)
++target_link_libraries(LIB_LIEF PRIVATE fmt::fmt spdlog::spdlog)
+
+ if(ANDROID AND LIEF_LOGGING)
+ target_link_libraries(LIB_LIEF PUBLIC log)
+@@ -503,11 +505,11 @@ if(LIEF_INSTALL)
+ endif()
+
+ install(
+- TARGETS LIB_LIEF lief_spdlog
++ TARGETS LIB_LIEF
+ EXPORT LIEFExport
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT libraries
+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
+
+ install(