Allow using compilers other than gfortran in conjunction with
MSVC or clang-cl.
This commit is contained in:
parent
ab87ee6b48
commit
632fc75d77
|
@ -20,12 +20,6 @@
|
||||||
# NEEDBUNDERSCORE
|
# NEEDBUNDERSCORE
|
||||||
# NEED2UNDERSCORES
|
# NEED2UNDERSCORES
|
||||||
|
|
||||||
if (MSVC)
|
|
||||||
# had to do this for MSVC, else CMake automatically assumes I have ifort... -hpa
|
|
||||||
include(CMakeForceCompiler)
|
|
||||||
CMAKE_FORCE_Fortran_COMPILER(gfortran GNU)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (NOT NO_LAPACK)
|
if (NOT NO_LAPACK)
|
||||||
enable_language(Fortran)
|
enable_language(Fortran)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue