Skip to content

Commit f31ab16

Browse files
committed
cmake: plutovg depends on math library
1 parent 72a7649 commit f31ab16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/Findplutovg.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ find_path(plutovg_INCLUDE_PATH
1515
HINTS ${PC_PLUTOVG_INCLUDEDIR}
1616
)
1717

18+
find_library(PLUTOVG_MATH_LIBRARY NAMES m)
19+
1820
if(PC_PLUTOVG_FOUND)
1921
get_flags_from_pkg_config("${plutovg_LIBRARY}" "PC_PLUTOVG" "_plutovg")
2022
endif()
@@ -42,5 +44,8 @@ if(plutovg_FOUND)
4244
INTERFACE_LINK_OPTIONS "${plutovg_LINK_OPTIONS}"
4345
INTERFACE_LINK_DIRECTORIES "${plutovg_LINK_DIRECTORIES}"
4446
)
47+
if(PLUTOVG_MATH_LIBRARY)
48+
set_property(TARGET plutovg::plutovg APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${PLUTOVG_MATH_LIBRARY}")
49+
endif()
4550
endif()
4651
endif()

0 commit comments

Comments
 (0)