blob: 55f28ccc6fefa6c8e179fdd5d5a5b85910ec7753 [file] [log] [blame]
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()