Skip to content

Commit

Permalink
Merge pull request Reference-LAPACK#948 from weslleyspereira/fix-945
Browse files Browse the repository at this point in the history
Enables Fortran before including CheckFortranFunctionExists in CMakeL…
  • Loading branch information
langou committed Nov 27, 2023
2 parents 04b044e + cbb5536 commit e78a2ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library inste

# Check the usage of the user provided BLAS libraries
if(BLAS_LIBRARIES)
enable_language(Fortran)
include(CheckFortranFunctionExists)
set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES})
CHECK_FORTRAN_FUNCTION_EXISTS("dgemm" BLAS_FOUND)
Expand Down

0 comments on commit e78a2ad

Please sign in to comment.