mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
CMake: Set macOS deployment target for vcpkg ports to match our build
Without this, ports get built with whatever default is there from the toolchain, and we get all sorts of linker warnings about a mismatch.
This commit is contained in:
Notes:
github-actions[bot]
2025-05-30 16:55:17 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/68bba89dc30 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4926
@@ -10,6 +10,10 @@ endif()
|
||||
# vcpkg flags depend on what linker we are using
|
||||
include("Meta/CMake/use_linker.cmake")
|
||||
|
||||
if (APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 14.0)
|
||||
endif()
|
||||
|
||||
# Pass additional information to vcpkg toolchain files if we are using vcpkg.
|
||||
if (CMAKE_TOOLCHAIN_FILE MATCHES "vcpkg.cmake$")
|
||||
set(CMAKE_PROJECT_ladybird_INCLUDE_BEFORE "Meta/CMake/vcpkg/generate_vcpkg_toolchain_variables.cmake")
|
||||
|
||||
Reference in New Issue
Block a user