CMake and BLAS for program C

I try to use CMake to create a program using blas, I detect blas using:

include (${CMAKE_ROOT}/Modules/FindBLAS.cmake) 

The problem is that FindBLAS requires fortran compiler and complains about

 -- Looking for BLAS... - NOT found (Fortran not enabled) 

Since blas is already installed on my machine (ATLAS Blas) and gfortran is also installed, how can I enable Fortran, or is there a workaround to find the blas library for C?

+4
source share
1 answer

CMake documentation is your friend, you need enable_language .

+3
source

Source: https://habr.com/ru/post/1307217/


All Articles