Disable fallback to C_LAPACK for MSVC (needs fixes for complex)

This commit is contained in:
Martin Kroeker 2022-04-07 14:42:02 +02:00 committed by GitHub
parent 740eea9b62
commit ba8995ea4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 9 deletions

View File

@ -25,16 +25,19 @@ check_language(Fortran)
if(CMAKE_Fortran_COMPILER)
enable_language(Fortran)
else()
set (NOFORTRAN 1)
if (NOT NO_LAPACK)
if (NOT MSVC)
message(STATUS "No Fortran compiler found, can build only BLAS and f2c-converted LAPACK")
endif()
# set (NO_LAPACK 1)
set(C_LAPACK 1)
if (INTERFACE64)
set (CCOMMON_OPT "${CCOMMON_OPT} -DLAPACK_ILP64")
endif ()
set(TIMER "NONE")
set (NOFORTRAN 1)
else ()
message(STATUS "No Fortran compiler found, can build only BLAS")
endif()
endif()
endif()
if (NOT ONLY_CBLAS)