diff --git a/src/sail-codecs/svg/CMakeLists.txt b/src/sail-codecs/svg/CMakeLists.txt index a551aca9..cb08c28e 100644 --- a/src/sail-codecs/svg/CMakeLists.txt +++ b/src/sail-codecs/svg/CMakeLists.txt @@ -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()