You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+12-9
Original file line number
Diff line number
Diff line change
@@ -55,24 +55,25 @@ compiler (or a different version thereof), please:\n\
55
55
- Install the compiler or load its module. (e.g. module load gcc/10.1)\n\
56
56
- Set/Export the C, CXX, and FC environment variables. (e.g. 'export CC=gcc', \
57
57
'export CXX=g++', and 'export FC=gfortran'.\n\
58
-
- If using mfc.sh, delete the build/<code name> directory and try again. (e.g. 'rm -rf build/pre_process')\n")
58
+
- If using mfc.sh, delete the build/<code name> directory and try again. (e.g. 'rm -rf build/pre_process')")
59
59
60
60
if (CMAKE_Fortran_COMPILER_ID STREQUAL"GNU")
61
61
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5)
62
-
message(FATAL_ERROR "${__err_msg}ERROR: GNU v5.0 or newer is required to build MFC.")
62
+
message(FATAL_ERROR "ERROR: GNU v5.0 or newer is required to build MFC.\n${__err_msg}")
63
63
endif()
64
64
if (MFC_OpenACC)
65
-
message(FATAL_ERROR "${__err_msg}ERROR: MFC with GPU processing is not currently compatible with GNU compilers. Please use NVIDIA or Cray compilers.")
65
+
message(FATAL_ERROR "ERROR: MFC with GPU processing is not currently compatible with GNU compilers. Please use NVIDIA or Cray compilers.\n${__err_msg}")
66
66
endif()
67
67
elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL"NVHPC") OR (CMAKE_Fortran_COMPILER_ID STREQUAL"PGI"))
68
68
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 21.7)
69
-
message(FATAL_ERROR "${__err_msg}ERROR: When using NVHPC, v21.7 or newer is required to build MFC.")
69
+
message(FATAL_ERROR "ERROR: When using NVHPC, v21.7 or newer is required to build MFC.\n${__err_msg}")
70
70
endif()
71
-
if ((CMAKE_BUILD_TYPESTREQUAL"Debug") AND MFC_OpenACC)
72
-
message(FATAL_ERROR "${__err_msg}ERROR: When using NVHPC, MFC with Debug and GPU options is unavailable.")
71
+
72
+
if ((CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 23.11) AND (CMAKE_BUILD_TYPESTREQUAL"Debug") AND MFC_OpenACC)
73
+
message(FATAL_ERROR "ERROR: When using NVHPC, MFC with Debug and GPU options requires NVHPC v23.11 or newer.\n${__err_msg}")
0 commit comments