Skip to content

Commit e78a2ad

Browse files
authored
Merge pull request #948 from weslleyspereira/fix-945
Enables Fortran before including CheckFortranFunctionExists in CMakeL…
2 parents 04b044e + cbb5536 commit e78a2ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library inste
223223

224224
# Check the usage of the user provided BLAS libraries
225225
if(BLAS_LIBRARIES)
226+
enable_language(Fortran)
226227
include(CheckFortranFunctionExists)
227228
set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES})
228229
CHECK_FORTRAN_FUNCTION_EXISTS("dgemm" BLAS_FOUND)

0 commit comments

Comments
 (0)