feat: Enhance modular build support and update Abseil integration for macOS

This commit is contained in:
scawful
2025-10-03 19:10:59 -04:00
parent c3eaace72c
commit c9f439207e
6 changed files with 59 additions and 23 deletions

View File

@@ -126,6 +126,17 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
endif()
# Abseil provider selection: default to bundled libraries on macOS to avoid
# deployment target mismatches with system packages, but let other platforms
# use their package managers unless overridden.
set(_yaze_default_force_absl OFF)
if(YAZE_PLATFORM_MACOS)
set(_yaze_default_force_absl ON)
endif()
option(YAZE_FORCE_BUNDLED_ABSL
"Force building the bundled Abseil submodule instead of finding a system package"
${_yaze_default_force_absl})
# Create a common interface target for shared settings
add_library(yaze_common INTERFACE)
target_compile_features(yaze_common INTERFACE cxx_std_23)