diff options
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.patch | 22 |
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} |