diff options
author | Brad King <brad.king@kitware.com> | 2023-01-17 14:59:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-17 14:59:31 (GMT) |
commit | 8d1705dbd26bd8fa078bc97227a7c5e721f3a259 (patch) | |
tree | ed162a3516dad6364cd48fe8a03f41ccf0d4a65c | |
parent | 74da1d1a8f4a1fb9f1e69806f67b44d2b89b3f73 (diff) | |
parent | eb4de100752a834e38ba0b83e586d70af7eafb3e (diff) | |
download | CMake-8d1705dbd26bd8fa078bc97227a7c5e721f3a259.zip CMake-8d1705dbd26bd8fa078bc97227a7c5e721f3a259.tar.gz CMake-8d1705dbd26bd8fa078bc97227a7c5e721f3a259.tar.bz2 |
Merge branch 'backport-FindCUDAToolkit-cuda-12-nvToolsExt' into release-3.25
Merge-request: !8076
-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() |