Skip to content

Commit

Permalink
Fix link error on Linux by invalid order of libs
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Mar 23, 2024
1 parent 9658fbe commit 9af7952
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/FindSkia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ if(UNIX AND NOT APPLE)

# Needed for SkFontMgr on Linux
find_library(FONTCONFIG_LIBRARY fontconfig)
target_link_libraries(skia INTERFACE
${FONTCONFIG_LIBRARY})
target_link_libraries(skia INTERFACE ${FONTCONFIG_LIBRARY})

# Options to ignore order of libraries in linking process
target_link_options(skia BEFORE INTERFACE -Wl,--start-group)
target_link_libraries(skia INTERFACE -Wl,--end-group)
endif()

add_library(skunicode INTERFACE)
Expand Down

0 comments on commit 9af7952

Please sign in to comment.