diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gz-transport/uuid-osx.patch | |
Diffstat (limited to 'vcpkg/ports/gz-transport/uuid-osx.patch')
| -rw-r--r-- | vcpkg/ports/gz-transport/uuid-osx.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-transport/uuid-osx.patch b/vcpkg/ports/gz-transport/uuid-osx.patch new file mode 100644 index 0000000..d51d9fe --- /dev/null +++ b/vcpkg/ports/gz-transport/uuid-osx.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8c69aa0e..428bd0ac 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,6 +111,8 @@ gz_find_package(CPPZMQ REQUIRED PRIVATE + if (MSVC) + set(skip_pybind11_default_value ON) + message (STATUS "UUID: Using Windows RPC UuidCreate function\n") ++elseif (APPLE) ++ message (STATUS "Use system uuid header") + else() + gz_find_package(UUID REQUIRED) + endif() +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 13101c50..340e0e82 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -21,7 +21,7 @@ target_include_directories(${PROJECT_LIBRARY_TARGET_NAME} + $<TARGET_PROPERTY:CPPZMQ::CPPZMQ,INTERFACE_INCLUDE_DIRECTORIES>) + + # Windows system library provides UUID +-if (NOT MSVC) ++if (NOT MSVC AND NOT APPLE) + target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME} + PUBLIC + UUID::UUID |