@@ -25,18 +25,14 @@ check_language(Fortran)
2525if (CMAKE_Fortran_COMPILER)
2626 enable_language (Fortran )
2727else ()
28- set (NOFORTRAN 1 )
28+ set (NOFORTRAN ON )
2929 if (NOT NO_LAPACK)
30- if (NOT XXXXX)
31- message (STATUS "No Fortran compiler found, can build only BLAS and f2c-converted LAPACK" )
32- set (C_LAPACK 1)
33- if (INTERFACE64)
34- set (CCOMMON_OPT "${CCOMMON_OPT} -DLAPACK_ILP64" )
35- endif ()
36- set (TIMER "NONE" )
37- else ()
38- message (STATUS "No Fortran compiler found, can build only BLAS" )
39- endif ()
30+ message (STATUS "No Fortran compiler found, can build only BLAS and f2c-converted LAPACK" )
31+ set (C_LAPACK 1)
32+ if (INTERFACE64)
33+ set (CCOMMON_OPT "${CCOMMON_OPT} -DLAPACK_ILP64" )
34+ endif ()
35+ set (TIMER "NONE" )
4036 endif ()
4137endif ()
4238
@@ -46,18 +42,18 @@ if (NOT ONLY_CBLAS)
4642 # TODO: detect whether underscore needed, set #defines and BU appropriately - use try_compile
4743 # TODO: set FEXTRALIB flags a la f_check?
4844 if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND x${CMAKE_Fortran_COMPILER_ID} MATCHES "IntelLLVM" ))
49- set (BU "_" )
50- file (APPEND ${TARGET_CONF_TEMP}
51- "#define BUNDERSCORE _\n "
52- "#define NEEDBUNDERSCORE 1\n "
53- "#define NEED2UNDERSCORES 0\n " )
45+ set (BU "_" )
46+ file (APPEND ${TARGET_CONF_TEMP}
47+ "#define BUNDERSCORE _\n "
48+ "#define NEEDBUNDERSCORE 1\n "
49+ "#define NEED2UNDERSCORES 0\n " )
5450 else ()
55- set (FCOMMON_OPT "${FCOMMON_OPT} /fp:precise /recursive /names:lowercase /assume:nounderscore" )
51+ set (FCOMMON_OPT "${FCOMMON_OPT} /fp:precise /recursive /names:lowercase /assume:nounderscore" )
5652 endif ()
5753else ()
5854
59- #When we only build CBLAS, we set NOFORTRAN=2
60- set (NOFORTRAN 2 )
55+ #When we only build CBLAS, we set NOFORTRAN=ON
56+ set (NOFORTRAN ON )
6157 set (NO_FBLAS 1)
6258 #set(F_COMPILER GFORTRAN) # CMake handles the fortran compiler
6359 set (BU "_" )
@@ -67,6 +63,6 @@ else ()
6763endif ()
6864
6965if (CMAKE_Fortran_COMPILER)
70- get_filename_component (F_COMPILER ${CMAKE_Fortran_COMPILER} NAME_WE )
71- string (TOUPPER ${F_COMPILER} F_COMPILER)
66+ get_filename_component (F_COMPILER ${CMAKE_Fortran_COMPILER} NAME_WE )
67+ string (TOUPPER ${F_COMPILER} F_COMPILER)
7268endif ()
0 commit comments