From: Mathieu Malaterre Date: Wed, 16 Feb 2011 13:59:24 +0000 (+0000) Subject: Explicitly link to the math lib on UNIX as we use floor and such symbols X-Git-Tag: version.1.5~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af71acb0436f23b075130217aeb5a2667e1e63a7;p=openjpeg Explicitly link to the math lib on UNIX as we use floor and such symbols --- diff --git a/libopenjpeg/CMakeLists.txt b/libopenjpeg/CMakeLists.txt index 121d7060..8cb6e295 100644 --- a/libopenjpeg/CMakeLists.txt +++ b/libopenjpeg/CMakeLists.txt @@ -30,6 +30,9 @@ IF(WIN32) ENDIF(BUILD_SHARED_LIBS) ENDIF(WIN32) ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS}) +IF(UNIX) + TARGET_LINK_LIBRARIES(${OPENJPEG_LIBRARY_NAME} m) +ENDIF(UNIX) SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES}) # Install library