diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-01-11 16:27:15 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-01-16 14:43:43 (GMT) |
commit | eb4de100752a834e38ba0b83e586d70af7eafb3e (patch) | |
tree | 17cfe0fb9ced609651035497ffb81cbf7111d50f /Modules | |
parent | e35255f2a5bfdc71eab9b6e44033954e6f829ac1 (diff) | |
download | CMake-eb4de100752a834e38ba0b83e586d70af7eafb3e.zip CMake-eb4de100752a834e38ba0b83e586d70af7eafb3e.tar.gz CMake-eb4de100752a834e38ba0b83e586d70af7eafb3e.tar.bz2 |
FindCUDAToolkit: Handle CUDA::nvToolsExt not existing
Fixes #24275
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index f06f0e8..8adb3bf 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -1084,7 +1084,7 @@ if(CUDAToolkit_FOUND) if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 10.0) # nvToolsExt is deprecated since nvtx3 introduction. # Warn only if the project requires a sufficiently new CMake to make migration possible. - if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_GREATER_EQUAL 3.25) + if(TARGET CUDA::nvToolsExt AND CMAKE_MINIMUM_REQUIRED_VERSION VERSION_GREATER_EQUAL 3.25) set_property(TARGET CUDA::nvToolsExt PROPERTY DEPRECATION "nvToolsExt has been superseded by nvtx3 since CUDA 10.0 and CMake 3.25. Use CUDA::nvtx3 and include <nvtx3/nvToolsExt.h> instead.") endif() |