Sfoglia il codice sorgente

Merge topic 'FindCUDA-mark-option-as-advanced'

eb86afebc4 FindCUDA: Mark CUDA_rt_LIBRARY as advanced

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8333
Brad King 2 anni fa
parent
commit
f99c6076ac
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Modules/FindCUDA.cmake

+ 1 - 0
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()