--- src/idas/CMakeLists.txt.orig 2017-11-07 23:48:10 UTC +++ src/idas/CMakeLists.txt @@ -113,6 +113,18 @@ IF(BUILD_SHARED_LIBS) TARGET_LINK_LIBRARIES(sundials_idas_shared m) ENDIF() + IF(UNIX) + TARGET_LINK_LIBRARIES(sundials_idas_shared m) + ENDIF() + + IF(LAPACK_FOUND) + TARGET_LINK_LIBRARIES(sundials_idas_shared ${LAPACK_LIBRARIES}) + ENDIF() + + IF(KLU_FOUND) + TARGET_LINK_LIBRARIES(sundials_idas_shared ${KLU_LIBRARIES}) + ENDIF() + # Set the library name and make sure it is not deleted SET_TARGET_PROPERTIES(sundials_idas_shared PROPERTIES OUTPUT_NAME sundials_idas CLEAN_DIRECT_OUTPUT 1)