Skip to content

Commit

Permalink
Build: Require fontconfig on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamonster256 committed Dec 6, 2024
1 parent 432bbb4 commit 6e8cb21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Meta/CMake/fontconfig.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include_guard()

if (NOT APPLE AND NOT ANDROID)
if (NOT ANDROID)
find_package(Fontconfig REQUIRED)
set(HAS_FONTCONFIG ON CACHE BOOL "" FORCE)
add_compile_definitions(USE_FONTCONFIG=1)
Expand Down
2 changes: 1 addition & 1 deletion Meta/CMake/skia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include(fontconfig)
find_package(unofficial-skia CONFIG)
if(unofficial-skia_FOUND)
set(SKIA_TARGET unofficial::skia::skia)
if (HAS_FONTCONFIG)
if (HAS_FONTCONFIG AND NOT APPLE)
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>")
Expand Down

0 comments on commit 6e8cb21

Please sign in to comment.