mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
Meta: Add workaround for CMake 4.0 policy minimum changes
In CMake 4.0, having a minimum policy version set to less than 3.5 is a hard error at configure time. Add an override until the issue can be resolved in vcpkg itself.
This commit is contained in:
parent
8e0786641f
commit
04d44c9b26
Notes:
github-actions[bot]
2025-04-02 16:51:19 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/04d44c9b262 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4176 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ if (LINUX AND NOT LAGOM_USE_LINKER)
|
|||
string(APPEND EXTRA_VCPKG_VARIABLES "set(ENV{LDFLAGS} -Wl,-z,noseparate-code)\n")
|
||||
endif()
|
||||
|
||||
# Temporary workaround until a version of vcpkg with https://github.com/microsoft/vcpkg/pull/44712 is released
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "4.0")
|
||||
string(APPEND EXTRA_VCPKG_VARIABLES "set(ENV{CMAKE_POLICY_VERSION_MINIMUM} 3.5)\n")
|
||||
endif()
|
||||
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/build-vcpkg-variables.cmake" "${EXTRA_VCPKG_VARIABLES}")
|
||||
|
||||
# Munge the VCPKG_TRIPLET to correspond to the right one for our presets
|
||||
|
|
Loading…
Add table
Reference in a new issue