--- CMakeLists.txt.orig	2014-05-28 09:24:45 UTC
+++ CMakeLists.txt
@@ -58,6 +58,8 @@ set (cminpack_hdrs
 
 add_library (cminpack ${LIB_TYPE} ${cminpack_srcs})
 
+TARGET_LINK_LIBRARIES(cminpack m)
+
 install (TARGETS cminpack 
    LIBRARY DESTINATION ${CMINPACK_LIB_INSTALL_DIR} COMPONENT library
    ARCHIVE DESTINATION ${CMINPACK_LIB_INSTALL_DIR} COMPONENT library
