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:
+1
-1
@@ -24,7 +24,7 @@ FetchContent_Declare(spdlog
|
||||
FetchContent_MakeAvailable(spdlog)
|
||||
|
||||
# ── 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_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
FetchContent_Declare(stduuid
|
||||
|
||||
Reference in New Issue
Block a user