From 7b7bb60393af192f2d388099a8e8ebd3cb9c39cb Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 18 Nov 2024 12:03:15 -0700 Subject: [PATCH] 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. --- Meta/CMake/skia.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/CMake/skia.cmake b/Meta/CMake/skia.cmake index 3683bc9b5dc..9d1eed1b322 100644 --- a/Meta/CMake/skia.cmake +++ b/Meta/CMake/skia.cmake @@ -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 "$") endif() else()