diff --git a/src/lib/openjpwl/CMakeLists.txt b/src/lib/openjpwl/CMakeLists.txt index 86b31d12..3b809989 100644 --- a/src/lib/openjpwl/CMakeLists.txt +++ b/src/lib/openjpwl/CMakeLists.txt @@ -47,6 +47,9 @@ if(WIN32) endif() endif() add_library(openjpwl ${JPWL_SRCS} ${OPENJPEG_SRCS}) +if(UNIX) + target_link_libraries(openjpwl m) +endif() set_target_properties(openjpwl PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})