Skip to content

Commit 85b55f9

Browse files
author
Weslley da Silva Pereira
committed
Maybe shared libs also need libgfortran
1 parent a5c5d4d commit 85b55f9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,10 @@ if (BLAS++ OR LAPACK++)
415415
# Determine Fortran runtime library.
416416
# todo: CMake ought to know this already -- how to access?
417417
set( Fortran_LIB "" )
418-
if (NOT BUILD_SHARED_LIBS)
419-
if (CMAKE_Fortran_COMPILER_ID MATCHES GNU)
420-
set( Fortran_LIB ";-lgfortran" )
421-
else()
422-
# TODO: This is incomplete. Fill in the other cases.
423-
endif()
418+
if (CMAKE_Fortran_COMPILER_ID MATCHES GNU)
419+
set( Fortran_LIB ";-lgfortran" )
420+
else()
421+
# TODO: This is incomplete. Fill in the other cases.
424422
endif()
425423
message( DEBUG "Fortran_LIB '${Fortran_LIB}'" )
426424

0 commit comments

Comments
 (0)