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 1f7235d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/FindSkia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ if(UNIX AND NOT APPLE)
find_library(FONTCONFIG_LIBRARY fontconfig)
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 1f7235d

Please sign in to comment.