Commit 56c2b13f authored by Max Lyon's avatar Max Lyon

do not try to find lapack if suitesparse is already found

parent 9293145f
Pipeline #7645 passed with stages
in 7 minutes and 16 seconds
...@@ -331,8 +331,8 @@ else () ...@@ -331,8 +331,8 @@ else ()
endif () endif ()
set(TMP_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}") set(TMP_CMAKE_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}")
set(CMAKE_FIND_LIBRARY_PREFIXES lib "") #Our blas librariy is called libblas.lib. Is there a better way to find it than this? set(CMAKE_FIND_LIBRARY_PREFIXES lib "") #Our lapack library is called liblapack.lib. Is there a better way to find it than this?
if (NEED_LAPACK) if (NEED_LAPACK AND NOT SUITESPARSE_FOUND)
FIND_PACKAGE(LAPACK) FIND_PACKAGE(LAPACK)
if (LAPACK_FOUND) if (LAPACK_FOUND)
list( APPEND COMISO_INCLUDE_DIRECTORIES ${LAPACK_INCLUDE_DIR} ) list( APPEND COMISO_INCLUDE_DIRECTORIES ${LAPACK_INCLUDE_DIR} )
...@@ -341,7 +341,7 @@ if (NEED_LAPACK) ...@@ -341,7 +341,7 @@ if (NEED_LAPACK)
else() else()
message(STATUS "LAPACK not found!") message(STATUS "LAPACK not found!")
endif() endif()
endif(NEED_LAPACK) endif(NEED_LAPACK AND NOT SUITESPARSE_FOUND)
set(CMAKE_FIND_LIBRARY_PREFIXES "${TMP_CMAKE_FIND_LIBRARY_PREFIXES}") set(CMAKE_FIND_LIBRARY_PREFIXES "${TMP_CMAKE_FIND_LIBRARY_PREFIXES}")
include_directories ( include_directories (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment