Fix emulated builds cmake configuration

This commit is contained in:
Antonio Sanchez
2025-03-03 07:26:26 -08:00
parent 0071c2e8a8
commit 9df4c76bb8
4 changed files with 60 additions and 55 deletions

View File

@@ -4,10 +4,9 @@ project(EigenBlas CXX)
include("../cmake/language_support.cmake")
workaround_9220(Fortran EIGEN_Fortran_COMPILER_WORKS)
if(EIGEN_Fortran_COMPILER_WORKS)
enable_language(Fortran OPTIONAL)
if(CMAKE_CROSSCOMPILING OR NOT CMAKE_Fortran_COMPILER)
if(NOT CMAKE_Fortran_COMPILER)
set(EIGEN_Fortran_COMPILER_WORKS OFF)
endif()
endif()