문제

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

include (${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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top