summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/RuntimeControls/verify_runtime.cmake
blob: b313dac93718c8ce48c17424ef7a84a426ee755b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

string(REPLACE "|" ";" dirs "${EXTRA_LIB_DIRS}")
file(GET_RUNTIME_DEPENDENCIES
  RESOLVED_DEPENDENCIES_VAR resolved_libs
  UNRESOLVED_DEPENDENCIES_VAR unresolved_libs
  DIRECTORIES ${dirs}
  EXECUTABLES ${EXEC_PATH}
  )

list(FILTER resolved_libs INCLUDE REGEX ".*cudart.*")
list(LENGTH resolved_libs has_cudart)

if(has_cudart EQUAL 0)
  message(FATAL_ERROR
    "missing cudart shared library from runtime dependency output.")
endif()