From 115914d3b91f9ef1447729e36cd69d489906d6f1 Mon Sep 17 00:00:00 2001 From: Cody Balos Date: Tue, 6 Aug 2024 10:09:47 -0700 Subject: [PATCH] Bugfix: remove CMake print warning (#552) Remove usage of print_warning macro that was missed previously --------- Co-authored-by: David Gardner --- CHANGELOG.md | 3 +++ cmake/SundialsDeprecated.cmake | 4 ++-- doc/shared/RecentChanges.rst | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c77cdcbdfb..61bf6ea6d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ Fixed the loading of ARKStep's default first order explicit method. +Fixed a CMake bug regarding usage of missing "print_warning" macro +that was only triggered when the deprecated `CUDA_ARCH` option was used. + ### Deprecation Notices ## Changes to SUNDIALS in release 7.1.1 diff --git a/cmake/SundialsDeprecated.cmake b/cmake/SundialsDeprecated.cmake index a426ac1814..017e867c73 100644 --- a/cmake/SundialsDeprecated.cmake +++ b/cmake/SundialsDeprecated.cmake @@ -180,8 +180,8 @@ endif() # if(DEFINED CUDA_ARCH) - print_warning("The CMake option CUDA_ARCH is deprecated. " - "Use CMAKE_CUDA_ARCHITECTURES instead.") + message(DEPRECATION "The CMake option CUDA_ARCH is deprecated. " + "Use CMAKE_CUDA_ARCHITECTURES instead.") # convert sm_** to just ** string(REGEX MATCH "[0-9]+" arch_name "${CUDA_ARCH}") set(CMAKE_CUDA_ARCHITECTURES diff --git a/doc/shared/RecentChanges.rst b/doc/shared/RecentChanges.rst index cc4a9f919c..2002b0ffd6 100644 --- a/doc/shared/RecentChanges.rst +++ b/doc/shared/RecentChanges.rst @@ -6,4 +6,7 @@ Fixed the loading of ARKStep's default first order explicit method. +Fixed a CMake bug regarding usage of missing "print_warning" macro +that was only triggered when the deprecated ``CUDA_ARCH`` option was used. + **Deprecation Notices**