aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindSuperLU.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindSuperLU.cmake')
-rw-r--r--cmake/FindSuperLU.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindSuperLU.cmake b/cmake/FindSuperLU.cmake
index 9d12ebd77..7383754e2 100644
--- a/cmake/FindSuperLU.cmake
+++ b/cmake/FindSuperLU.cmake
@@ -13,6 +13,10 @@ find_path(SUPERLU_INCLUDES
find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR})
+if(SUPERLU_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
+ set(SUPERLU_LIBRARIES ${SUPERLU_LIBRARIES} -lgfortran)
+endif(SUPERLU_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SUPERLU DEFAULT_MSG
SUPERLU_INCLUDES SUPERLU_LIBRARIES)