build: disable UUID_SYSTEM_GENERATOR to remove libuuid dependency on Linux

UUID_SYSTEM_GENERATOR=ON requires libuuid on Linux and CoreFoundation
on macOS. Turning it off uses stduuid's built-in mt19937 generator,
which needs no system packages and works identically on all platforms.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
JohannesItten
2026-06-23 13:52:15 +03:00
parent 8646a4d2a7
commit bf45fe4fc0
+1 -1
View File
@@ -24,7 +24,7 @@ FetchContent_Declare(spdlog
FetchContent_MakeAvailable(spdlog) FetchContent_MakeAvailable(spdlog)
# ── stduuid (header-only; no brew formula) ─────────────────────────────────── # ── stduuid (header-only; no brew formula) ───────────────────────────────────
set(UUID_SYSTEM_GENERATOR ON CACHE BOOL "" FORCE) # use CoreFoundation on macOS set(UUID_SYSTEM_GENERATOR OFF CACHE BOOL "" FORCE) # avoid libuuid/CoreFoundation dep
set(UUID_USING_CXX20_SPAN ON CACHE BOOL "" FORCE) # std::span, no GSL dependency set(UUID_USING_CXX20_SPAN ON CACHE BOOL "" FORCE) # std::span, no GSL dependency
set(UUID_BUILD_TESTS OFF CACHE BOOL "" FORCE) set(UUID_BUILD_TESTS OFF CACHE BOOL "" FORCE)
FetchContent_Declare(stduuid FetchContent_Declare(stduuid