Include standard math runtime library when linking numerics

This commit is contained in:
Roland Kaufmann 2013-03-13 00:01:41 +01:00
parent 1e765a2f29
commit 58dd4fd7b4

View File

@ -67,7 +67,10 @@ endif (NOT BLAS_FOUND)
if (NOT LAPACK_FOUND) if (NOT LAPACK_FOUND)
find_package (LAPACK ${SuiteSparse_QUIET} REQUIRED) find_package (LAPACK ${SuiteSparse_QUIET} REQUIRED)
endif (NOT LAPACK_FOUND) endif (NOT LAPACK_FOUND)
set (SuiteSparse_EXTRA_LIBS ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES})
# we also need the math part of the runtime library
find_library (MATH_LIBRARY NAMES "m")
set (SuiteSparse_EXTRA_LIBS ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${MATH_LIBRARY})
# search paths for the library outside of standard system paths. these are the # search paths for the library outside of standard system paths. these are the
# paths in which the package managers on various distros put the files # paths in which the package managers on various distros put the files