Skip to content

Commit 1a57525

Browse files
committed
Update CMake error message for unsupported compiler
This commit updates the error message when an unknown or unsupported compiler is passed into the CMake. The hope is to be clearer with what compilers are supported, and tell users how to resolve the error.
1 parent 44b47c3 commit 1a57525

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

f90/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
6565
-qopenmp
6666
)
6767
else()
68-
message(FATAL_ERROR "Unknown/Unsupported Fortran Compiler: '${CMAKE_Fortran_COMPILER_ID}' - Supported compilers are < GNU | Ifort")
68+
message(FATAL_ERROR
69+
"Unknown/Unsupported Fortran Compiler: '${CMAKE_Fortran_COMPILER_ID}'\n"
70+
"- Supported compilers are < GNU | ifort (Legacy Intel compiler) | ifx (Intel OneAPI compiler)>\n"
71+
"- Of course you will need to specify the MPI wrapper: `-DCMAKE_Fortran_COMPILER=mpifort`")
6972
endif()
7073

7174

0 commit comments

Comments
 (0)