You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
455 B

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 ".*[Cc][Uu][Dd][Aa][Rr][Tt].*")
list(LENGTH resolved_libs has_cudart)
if(has_cudart EQUAL 0)
message(FATAL_ERROR
"missing cudart shared library from runtime dependency output.")
endif()