开发者

CMake and BLAS for a C program

开发者 https://www.devze.com 2022-12-27 10:26 出处:网络
I\'m trying to use CMake to build a program relying on blas, I\'m detecting blas using : i开发者_运维知识库nclude (${CMAKE_ROOT}/Modules/FindBLAS.cmake)

I'm trying to use CMake to build a program relying on blas, I'm detecting blas using :

i开发者_运维知识库nclude (${CMAKE_ROOT}/Modules/FindBLAS.cmake)

The problem is, FindBLAS require a fortran compiler and complain with

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

As 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?


The CMake Documentation is your friend, what you need is enable_language.

0

精彩评论

暂无评论...
验证码 换一张
取 消