Skip to content

Commit

Permalink
SVG: NanoSVG requires the math library
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Oct 31, 2024
1 parent a7c13b4 commit 3aeafdb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sail-codecs/svg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,12 @@ if (SAIL_RESVG)
endif()
else()
target_compile_definitions(${SAIL_CODEC_TARGET} PRIVATE SAIL_NANOSVG)

# NanoSVG requires the math library
#
find_library(MATH_LIBRARY m)

if (MATH_LIBRARY)
target_link_libraries(${SAIL_CODEC_TARGET} PRIVATE m)
endif()
endif()

0 comments on commit 3aeafdb

Please sign in to comment.