Skip to content

Commit

Permalink
softfail if lapack not present
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 31, 2018
1 parent 92fbc0c commit c25907d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ addons:
sources: ubuntu-toolchain-r-test
packages:
- gfortran-6
- liblapack-dev
# - libopenmpi-dev
# - openmpi-bin #goofed up travis network
# - libhdf5-dev # old version
Expand Down
12 changes: 10 additions & 2 deletions cmake/Modules/FindLAPACK95.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)

elseif(USEMKL) # MKL with non-Intel compiler
set(BLA_F95 OFF)
find_package(LAPACK REQUIRED)
find_package(LAPACK)
if(NOT LAPACK_FOUND)
message(WARNING "Lapack is required for Lapack95")
return()
endif()

find_path(LAPACK95_INCLUDE_DIR
NAMES lapack95.mod
Expand All @@ -67,7 +71,11 @@ elseif(USEMKL) # MKL with non-Intel compiler

else() # Netlib
set(BLA_F95 OFF)
find_package(LAPACK REQUIRED)
find_package(LAPACK)
if(NOT LAPACK_FOUND)
message(WARNING "Lapack is required for Lapack95")
return()
endif()

find_path(LAPACK95_INCLUDE_DIR
NAMES f95_lapack.mod
Expand Down

0 comments on commit c25907d

Please sign in to comment.