aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dacap-clip/fix-install-header-and-force-static-compilation.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/dacap-clip/fix-install-header-and-force-static-compilation.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dacap-clip/fix-install-header-and-force-static-compilation.patch')
-rw-r--r--vcpkg/ports/dacap-clip/fix-install-header-and-force-static-compilation.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/dacap-clip/fix-install-header-and-force-static-compilation.patch b/vcpkg/ports/dacap-clip/fix-install-header-and-force-static-compilation.patch
new file mode 100644
index 0000000..6ea26d2
--- /dev/null
+++ b/vcpkg/ports/dacap-clip/fix-install-header-and-force-static-compilation.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 79f7074..775b565 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,7 +25,7 @@ if(UNIX AND NOT APPLE)
+ option(CLIP_X11_WITH_PNG "Compile with libpng to support copy/paste image in png format" on)
+ endif()
+
+-add_library(clip clip.cpp)
++add_library(clip STATIC clip.cpp)
+
+ if(CLIP_ENABLE_IMAGE)
+ target_sources(clip PRIVATE image.cpp)
+@@ -109,6 +109,8 @@ endif()
+ if(CLIP_INSTALL)
+ include(GNUInstallDirs)
+
++ target_include_directories(clip PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
++
+ install(
+ FILES clip.h
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}