Currently forcing gfortran, instead of assuming ifort.
set(OpenBLAS_PATCH_VERSION 13)
set(OpenBLAS_VERSION "${OpenBLAS_MAJOR_VERSION}.${OpenBLAS_MINOR_VERSION}.${OpenBLAS_PATCH_VERSION}")
-enable_language(Fortran)
enable_language(ASM)
message(WARNING "CMake support is experimental. This will not produce the same Makefiles that OpenBLAS ships with. Only x86 support is currently available.")
# 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)