summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorAndrey Alekseenko <al42and@gmail.com>2023-03-16 13:52:52 (GMT)
committerAndrey Alekseenko <al42and@gmail.com>2023-03-16 13:52:52 (GMT)
commiteb86afebc48f20b38618f0eacf3a5e6fcd761fa4 (patch)
treebf7df54318a70a679e20f6f74132ab66e85ac012 /Modules/FindCUDA.cmake
parent2c2c2c2227101730ea6835b5a32a41336725e46a (diff)
downloadCMake-eb86afebc48f20b38618f0eacf3a5e6fcd761fa4.zip
CMake-eb86afebc48f20b38618f0eacf3a5e6fcd761fa4.tar.gz
CMake-eb86afebc48f20b38618f0eacf3a5e6fcd761fa4.tar.bz2
FindCUDA: Mark CUDA_rt_LIBRARY as advanced
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index f65bb73..220b9ab 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -1074,6 +1074,7 @@ if(CUDA_USE_STATIC_CUDA_RUNTIME)
if(NOT APPLE AND NOT (CMAKE_SYSTEM_NAME STREQUAL "QNX"))
#On Linux, you must link against librt when using the static cuda runtime.
find_library(CUDA_rt_LIBRARY rt)
+ mark_as_advanced(CUDA_rt_LIBRARY)
if (NOT CUDA_rt_LIBRARY)
message(WARNING "Expecting to find librt for libcudart_static, but didn't find it.")
endif()