summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-18 19:22:39 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-18 19:27:29 (GMT)
commit607d271b1f8f8b6551bb9b4f3ca2acc50b41503b (patch)
treeab06a24f82b4b40f6c44fe15b85c67e0efa92bba /Tests/Cuda
parent5eb26fb943b25b13cd8f98739da894593e778f28 (diff)
downloadCMake-607d271b1f8f8b6551bb9b4f3ca2acc50b41503b.zip
CMake-607d271b1f8f8b6551bb9b4f3ca2acc50b41503b.tar.gz
CMake-607d271b1f8f8b6551bb9b4f3ca2acc50b41503b.tar.bz2
Tests: Do not expect nvToolsExt in CUDA 12 toolkit
Diffstat (limited to 'Tests/Cuda')
-rw-r--r--Tests/Cuda/Toolkit/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/Cuda/Toolkit/CMakeLists.txt b/Tests/Cuda/Toolkit/CMakeLists.txt
index 4255b82..08ba20a 100644
--- a/Tests/Cuda/Toolkit/CMakeLists.txt
+++ b/Tests/Cuda/Toolkit/CMakeLists.txt
@@ -70,7 +70,11 @@ foreach (cuda_lib IN LISTS npp_libs)
endif()
endforeach()
-foreach (cuda_lib nvrtc nvToolsExt OpenCL)
+set(nv_libs nvrtc OpenCL)
+if(CUDAToolkit_VERSION_MAJOR VERSION_LESS 12)
+ list(APPEND nv_libs nvToolsExt)
+endif()
+foreach (cuda_lib IN LISTS nv_libs)
if(NOT TARGET CUDA::${cuda_lib})
message(FATAL_ERROR "The CUDA::${cuda_lib} target was expected but couldn't be found")
endif()