aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/stduuid/fix-libuuid-dependency.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/stduuid/fix-libuuid-dependency.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/stduuid/fix-libuuid-dependency.patch')
-rw-r--r--vcpkg/ports/stduuid/fix-libuuid-dependency.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/stduuid/fix-libuuid-dependency.patch b/vcpkg/ports/stduuid/fix-libuuid-dependency.patch
new file mode 100644
index 0000000..5913481
--- /dev/null
+++ b/vcpkg/ports/stduuid/fix-libuuid-dependency.patch
@@ -0,0 +1,32 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 039ee53..d4218a4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -23,11 +23,8 @@ if (UUID_SYSTEM_GENERATOR)
+ find_library(CFLIB CoreFoundation REQUIRED)
+ target_link_libraries(${PROJECT_NAME} INTERFACE ${CFLIB})
+ else ()
+- find_package(Libuuid REQUIRED)
+- if (Libuuid_FOUND)
+- target_include_directories(${PROJECT_NAME} INTERFACE ${Libuuid_INCLUDE_DIRS})
+- target_link_libraries(${PROJECT_NAME} INTERFACE ${Libuuid_LIBRARIES})
+- endif ()
++ find_package(unofficial-libuuid CONFIG REQUIRED)
++ target_link_libraries(${PROJECT_NAME} INTERFACE unofficial::UUID::uuid)
+ endif ()
+ endif ()
+
+diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in
+index fb981d2..8a3c8ab 100644
+--- a/cmake/Config.cmake.in
++++ b/cmake/Config.cmake.in
+@@ -4,8 +4,7 @@ include(CMakeFindDependencyMacro)
+ if (@UUID_SYSTEM_GENERATOR@)
+ if (WIN32 OR APPLE)
+ else ()
+- list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
+- find_dependency(Libuuid REQUIRED)
++ find_dependency(unofficial-libuuid CONFIG)
+ endif ()
+ endif ()
+