aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libraw/fix-install.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/libraw/fix-install.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libraw/fix-install.patch')
-rw-r--r--vcpkg/ports/libraw/fix-install.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/libraw/fix-install.patch b/vcpkg/ports/libraw/fix-install.patch
new file mode 100644
index 0000000..c4facc5
--- /dev/null
+++ b/vcpkg/ports/libraw/fix-install.patch
@@ -0,0 +1,39 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e6a70d9..a5c70e7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -629,7 +629,13 @@ if (LIBRAW_INSTALL)
+ )
+
+ # Install Shared binary files.
+- install(TARGETS raw raw_r
++ install(TARGETS raw
++ EXPORT ${PROJECT_NAME}Targets
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/manual-link
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/manual-link
++ )
++ install(TARGETS raw_r
+ EXPORT ${PROJECT_NAME}Targets
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+@@ -640,6 +646,7 @@ if (LIBRAW_INSTALL)
+ if(NOT BUILD_SHARED_LIBS AND "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC")
+ message("ClangCl does not support pdb generation with static libraries")
+ elseif(MSVC)
++ elseif(0)
+ install(FILES ${PROJECT_BINARY_DIR}/raw.pdb ${PROJECT_BINARY_DIR}/raw_r.pdb
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ CONFIGURATIONS Debug RelWithDebInfo
+diff --git a/cmake/data/libraw.pc.cmake b/cmake/data/libraw.pc.cmake
+index 54c5af4..d182680 100644
+--- a/cmake/data/libraw.pc.cmake
++++ b/cmake/data/libraw.pc.cmake
+@@ -1,6 +1,6 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
++libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@/manual-link
+ includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
+
+ Name: @PROJECT_NAME@