mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Fixes #17559 Replace our hard-coded default of cudart=static with a first-class abstraction to select the runtime library from an enumeration of logical names.
15 lines
415 B
CMake
15 lines
415 B
CMake
execute_process(COMMAND ${DUMP_COMMAND} ${DUMP_ARGS} ${TEST_LIBRARY_PATH}
|
|
RESULT_VARIABLE RESULT
|
|
OUTPUT_VARIABLE OUTPUT
|
|
ERROR_VARIABLE ERROR
|
|
)
|
|
|
|
if(NOT "${RESULT}" STREQUAL "0")
|
|
message(FATAL_ERROR "${DUMP_COMMAND} failed [${RESULT}] [${OUTPUT}] [${ERROR}]")
|
|
endif()
|
|
|
|
if(NOT "${OUTPUT}" MATCHES "(__cuda)")
|
|
message(FATAL_ERROR
|
|
"not missing cuda device symbols, static runtime linking was used.")
|
|
endif()
|