Added check for MSVC before enabling fortran.

Currently forcing gfortran, instead of assuming ifort.
This commit is contained in:
Hank Anderson
2015-02-24 14:31:45 -06:00
parent a8002b0c5f
commit 504cdb10ed
2 changed files with 7 additions and 1 deletions

View File

@@ -20,6 +20,13 @@
# NEEDBUNDERSCORE
# 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 ()
enable_language(Fortran)
if (NOT ONLY_CBLAS)
# N.B. f_check is not cross-platform, so instead try to use CMake variables
# run f_check (appends to TARGET files)