mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
CMake: Store the CMake sauce to add no-as-needed libraries to cache
This was causing issues for my Ubuntu 24.04 build when building the Distribution preset, so just stash this constant config in the CMake cache to not worry about it anymore.
This commit is contained in:
parent
e28e4f6700
commit
7b7bb60393
Notes:
github-actions[bot]
2024-11-18 21:20:22 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/7b7bb60393a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2428
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ find_package(unofficial-skia CONFIG)
|
|||
if(unofficial-skia_FOUND)
|
||||
set(SKIA_TARGET unofficial::skia::skia)
|
||||
if (HAS_FONTCONFIG)
|
||||
set(CMAKE_LINK_GROUP_USING_no_as_needed_SUPPORTED TRUE)
|
||||
set(CMAKE_LINK_GROUP_USING_no_as_needed "LINKER:--push-state,--no-as-needed" "LINKER:--pop-state")
|
||||
set(CMAKE_LINK_GROUP_USING_no_as_needed_SUPPORTED TRUE CACHE BOOL "Link group using no-as-needed supported")
|
||||
set(CMAKE_LINK_GROUP_USING_no_as_needed "LINKER:--push-state,--no-as-needed" "LINKER:--pop-state" CACHE STRING "Link group using no-as-needed")
|
||||
set_property(TARGET unofficial::skia::skia APPEND PROPERTY INTERFACE_LINK_LIBRARIES "$<LINK_GROUP:no_as_needed,Fontconfig::Fontconfig>")
|
||||
endif()
|
||||
else()
|
||||
|
|
Loading…
Add table
Reference in a new issue