aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libguarded/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/libguarded/fix-install.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libguarded/fix-install.patch')
-rw-r--r--vcpkg/ports/libguarded/fix-install.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/libguarded/fix-install.patch b/vcpkg/ports/libguarded/fix-install.patch
new file mode 100644
index 0000000..c75f80a
--- /dev/null
+++ b/vcpkg/ports/libguarded/fix-install.patch
@@ -0,0 +1,41 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 20eaf53..b81f056 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,20 +32,7 @@ include(CheckIncludeFiles)
+ include(CheckTypeSize)
+
+ # location for install or package
+-if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
+- include(GNUInstallDirs)
+- set(CMAKE_INSTALL_RPATH "@executable_path")
+-
+-elseif (CMAKE_SYSTEM_NAME MATCHES "(Linux|OpenBSD|FreeBSD|NetBSD|DragonFly)")
+- include(GNUInstallDirs)
+- set(CMAKE_INSTALL_RPATH "\$ORIGIN")
+-
+-elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
+- set(CMAKE_INSTALL_BINDIR bin)
+- set(CMAKE_INSTALL_LIBDIR lib)
+- set(CMAKE_INSTALL_INCLUDEDIR include)
+-
+-endif()
++include(GNUInstallDirs)
+
+ set(PACKAGE "cs_libguarded")
+ set(PACKAGE_NAME "CsLibGuarded")
+@@ -98,13 +85,7 @@ else()
+ endif()
+
+ # destination for cmake export files
+-if (CMAKE_SYSTEM_NAME MATCHES "Windows")
+- set(PKG_PREFIX "cmake/CsLibGuarded")
+-
+-else()
+- set(PKG_PREFIX "${CMAKE_INSTALL_LIBDIR}/cmake/CsLibGuarded")
+-
+-endif()
++set(PKG_PREFIX "${CMAKE_INSTALL_LIBDIR}/cmake/CsLibGuarded")
+
+ # catch2 set up
+ if(BUILD_TESTS)