From 4ecfe57eda09c43be539c7048cba7c5d4405cec1 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Wed, 22 Nov 2023 14:50:31 -0500 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7eb2546b1..d687fb714 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +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: NVHPC v21.7 or newer is required to build MFC.") endif() + if ((CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 23.0) AND (MAKE_BUILD_TYPE STREQUAL "Debug")) + message(FATAL_ERROR "${__err_msg}ERROR: NVHPC v23.0 or newer is required to build MFC with GPU and Debug options.") + endif() elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang") message(FATAL_ERROR "${__err_msg}ERROR: MFC does not support the Apple Clang compilers. Please consult the documentation.") endif()