diff --git a/CMakeLists.txt b/CMakeLists.txt index af8af981a..d24ed1482 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,9 +67,9 @@ elseif ((CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC") OR (CMAKE_Fortran_COMPILER_ if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 21.7) message(FATAL_ERROR "${__err_msg}ERROR: When using NVHPC, v21.7 or newer is required to build MFC.") endif() - if (MAKE_BUILD_TYPE STREQUAL "Debug")) + if (MAKE_BUILD_TYPE STREQUAL "Debug") if (MFC_OpenACC) - if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 23.0)) + if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 23.0) message(FATAL_ERROR "${__err_msg}ERROR: When using NVHPC, v23.0 or newer is required to build MFC with Debug and GPU options.") endif() else()