Skip to content

Commit 19f340f

Browse files
committed
SVG: NanoSVG requires the math library
1 parent a7c13b4 commit 19f340f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sail-codecs/svg/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,12 @@ if (SAIL_RESVG)
8888
endif()
8989
else()
9090
target_compile_definitions(${SAIL_CODEC_TARGET} PRIVATE SAIL_NANOSVG)
91+
92+
# NanoSVG requires the math library
93+
#
94+
find_library(MATH_LIBRARY m)
95+
96+
if (MATH_LIBRARY)
97+
target_link_libraries(${SAIL_CODEC_TARGET} PRIVATE ${MATH_LIBRARY})
98+
endif()
9199
endif()

0 commit comments

Comments
 (0)