From cbb553627ee866738d4531cf826bd4d87530d5c1 Mon Sep 17 00:00:00 2001 From: Weslley S Pereira Date: Mon, 27 Nov 2023 10:29:11 -0700 Subject: [PATCH] Enables Fortran before including CheckFortranFunctionExists in CMakeLists.txt --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1f47ae24f..5c3818db5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)