diff -urN openjpeg_v1_4_sources_r697.old/libopenjpeg/CMakeLists.txt openjpeg_v1_4_sources_r697/libopenjpeg/CMakeLists.txt --- openjpeg_v1_4_sources_r697.old/libopenjpeg/CMakeLists.txt 2011-03-30 14:25:14.000000000 +0200 +++ openjpeg_v1_4_sources_r697/libopenjpeg/CMakeLists.txt 2011-03-30 14:25:50.000000000 +0200 @@ -30,6 +30,7 @@ ENDIF(BUILD_SHARED_LIBS) ENDIF(WIN32) ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME} ${OPENJPEG_SRCS}) +TARGET_LINK_LIBRARIES(${OPENJPEG_LIBRARY_NAME} -lm) SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES}) # Install library