Skip to content

Commit e13fc2d

Browse files
authored
Merge pull request #59 from MiCurry/cmake-supported-comp-msg
Update CMake error message for unsupported compiler
2 parents 742a3b2 + 1a57525 commit e13fc2d

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" OR CMAKE_Fortran_COMPILER_ID
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)