Skip to content

Commit c25907d

Browse files
committed
softfail if lapack not present
1 parent 92fbc0c commit c25907d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ addons:
1414
sources: ubuntu-toolchain-r-test
1515
packages:
1616
- gfortran-6
17+
- liblapack-dev
1718
# - libopenmpi-dev
1819
# - openmpi-bin #goofed up travis network
1920
# - libhdf5-dev # old version

cmake/Modules/FindLAPACK95.cmake

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
5151

5252
elseif(USEMKL) # MKL with non-Intel compiler
5353
set(BLA_F95 OFF)
54-
find_package(LAPACK REQUIRED)
54+
find_package(LAPACK)
55+
if(NOT LAPACK_FOUND)
56+
message(WARNING "Lapack is required for Lapack95")
57+
return()
58+
endif()
5559

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

6872
else() # Netlib
6973
set(BLA_F95 OFF)
70-
find_package(LAPACK REQUIRED)
74+
find_package(LAPACK)
75+
if(NOT LAPACK_FOUND)
76+
message(WARNING "Lapack is required for Lapack95")
77+
return()
78+
endif()
7179

7280
find_path(LAPACK95_INCLUDE_DIR
7381
NAMES f95_lapack.mod

0 commit comments

Comments
 (0)