Skip to content

Commit

Permalink
Moved PREFERRED_FC_COMPILERS to be available on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
makepath-alex committed Dec 4, 2024
1 parent 4ff2ae2 commit cbc8b28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ message(STATUS "Adding compiler definition -DRTE_USE_${BOOL_TYPE}BOOL")

set(CMAKE_Fortran_FLAGS "" CACHE STRING "Select Fortran compile flags")

set(PREFERRED_FC_COMPILERS "gfortran" "gfortran-10" "gfortran-11" "gfortran-12" "ifort" "ifx" "nvfortran" "f77")

if(NOT WINDOWS)
set(PREFERRED_FC_COMPILERS "gfortran" "gfortran-10" "gfortran-11" "gfortran-12" "ifort" "ifx" "nvfortran" "f77")
set(CMAKE_Fortran_COMPILER "gfortran" CACHE STRING "Select the Fortran compiler: ${PREFERRED_FC_COMPILERS}")
set_property(CACHE CMAKE_Fortran_COMPILER PROPERTY STRINGS ${PREFERRED_FC_COMPILERS})
else()
Expand Down

0 comments on commit cbc8b28

Please sign in to comment.