From 52ac3ac1e4d9f0b29cc6be927078592244cda9fe Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Fri, 7 Feb 2025 11:37:59 -0800 Subject: [PATCH] give up trying to suppress warning about deprecated command line switch --- CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d85c44ced..3f58b3e52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -279,11 +279,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC") # Unset these if using nvc++ disable_compiler(LANG CUDA) - if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 24.5.0) - set(_nvhpc_seperate_memory_flags "-gpu=mem:separate") - else() - set(_nvhpc_seperate_memory_flags "-gpu=nomanaged") - endif() + set(_nvhpc_seperate_memory_flags "-gpu=nomanaged") + # if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 24.5.0) + # set(_nvhpc_seperate_memory_flags "-gpu=mem:separate") + # endif() endif() # Support target for examples and tests