aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/check/fix-lib-path.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/check/fix-lib-path.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/check/fix-lib-path.patch')
-rw-r--r--vcpkg/ports/check/fix-lib-path.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/check/fix-lib-path.patch b/vcpkg/ports/check/fix-lib-path.patch
new file mode 100644
index 0000000..d3086e7
--- /dev/null
+++ b/vcpkg/ports/check/fix-lib-path.patch
@@ -0,0 +1,43 @@
+diff --git a/doc/example/src/CMakeLists.txt b/doc/example/src/CMakeLists.txt
+index b5e211e..2a92a1a 100644
+--- a/doc/example/src/CMakeLists.txt
++++ b/doc/example/src/CMakeLists.txt
+@@ -18,7 +18,7 @@ target_link_libraries(main money)
+
+ install(TARGETS money
+ RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib)
++ LIBRARY DESTINATION lib/manual-link
++ ARCHIVE DESTINATION lib/manual-link)
+
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/money.h DESTINATION include)
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 38cbc53..d8a4272 100644
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -75,5 +75,11 @@ set(HEADERS libcompat.h)
+
+ add_library(compat STATIC ${SOURCES} ${HEADERS})
+
++install(TARGETS compat
++ RUNTIME DESTINATION bin
++ LIBRARY DESTINATION lib/manual-link
++ ARCHIVE DESTINATION lib/manual-link
++)
++
+ # vim: shiftwidth=2:softtabstop=2:tabstop=2:expandtab:autoindent
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 4a02dbe..3bf2fa6 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -191,7 +191,7 @@ if(NOT THIS_IS_SUBPROJECT)
+ install(TARGETS check checkShared
+ EXPORT check-targets
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/manual-link
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )