FIND_PACKAGE(LAPACK REQUIRED)
FIND_PACKAGE(BLAS REQUIRED)
+SET(CMAKE_SHARED_LINKER_FLAGS
+ "${CMAKE_SHARED_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
+ )
+
+LIST(APPEND deal_ii_external_libraries
+ ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}
+ )
+
# TODO: A deal.II specific error message if blas or lapack is not found
+
IF(NOT DEAL_II_FORCE_CONTRIB_UMFPACK)
FIND_PACKAGE(UMFPACK)
ELSE()
SET(UMFPACKAMD_FOUND FALSE)
ENDIF()
-
IF(DEAL_II_FORCE_CONTRIB_UMFPACK OR NOT UMFPACKAMD_FOUND)
INCLUDE_DIRECTORIES(
INCLUDE_DIRECTORIES(${UMFPACK_INCLUDE_DIR} ${AMD_INCLUDE_DIR})
- LIST(APPEND deal_ii_required_linker_flags
- ${BLAS_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}
- )
-
LIST(APPEND deal_ii_external_libraries
- ${UMFPACK_LIBRARY} ${AMD_LIBRARY} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}
+ ${UMFPACK_LIBRARY} ${AMD_LIBRARY}
)
ENDIF()