File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,8 @@ elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC") OR (CMAKE_Fortran_COMPILER_
6767 if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 21.7)
6868 message (FATAL_ERROR "${__err_msg} ERROR: When using NVHPC, v21.7 or newer is required to build MFC." )
6969 endif ()
70- if (MAKE_BUILD_TYPE STREQUAL "Debug" )
71- if (MFC_OpenACC)
72- if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 23.0)
73- message (FATAL_ERROR "${__err_msg} ERROR: When using NVHPC, v23.0 or newer is required to build MFC with Debug and GPU options." )
74- endif ()
75- else ()
76- if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 23.8)
77- message (FATAL_ERROR "${__err_msg} ERROR: Debug is not working with NVHPC 23.X and older and CPU options at present." )
78- endif ()
79- endif ()
70+ if ((CMAKE_BUILD_TYPE STREQUAL "Debug" ) AND MFC_OpenACC)
71+ message (FATAL_ERROR "${__err_msg} ERROR: When using NVHPC, MFC with Debug and GPU options is unavailable." )
8072 endif ()
8173elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang" )
8274 message (FATAL_ERROR "${__err_msg} ERROR: MFC does not support the Apple Clang compilers. Please consult the documentation." )
@@ -193,7 +185,7 @@ elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC") OR (CMAKE_Fortran_COMPILER_
193185 endif ()
194186
195187 if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
196- add_compile_options (-C -g -O0 -traceback -Mchkptr -Mchkstk - Minform=inform -Mbounds)
188+ add_compile_options (-C -g -O0 -traceback -Mchkptr -Minform=inform -Mbounds)
197189 endif ()
198190
199191 if (DEFINED ENV{MFC_CUDA_CC})
You can’t perform that action at this time.
0 commit comments