File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -51,7 +51,11 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
5151
5252elseif (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
6872else () # 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
You can’t perform that action at this time.
0 commit comments