Skip to content
Snippets Groups Projects
Commit cc1a2380 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Fix for ROOT-8510 - CMake: default config on MacOS fails due to fortran

parent 0b234462
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,9 @@ if(fortran)
set(CMAKE_Fortran_COMPILER CMAKE_Fortran_COMPILER-NOTFOUND)
endif()
enable_language(Fortran OPTIONAL)
if(NOT CMAKE_Fortran_COMPILER)
set(CMAKE_Fortran_COMPILER_LOADED) # FindBLAS/LAPACK tests CMAKE_Fortran_COMPILER_LOADED
endif()
else()
set(CMAKE_Fortran_COMPILER CMAKE_Fortran_COMPILER-NOTFOUND)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment