blob: 94d388b104a75381a7fd6f4b9e885afa31e0bfae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 "(cmake_device_link|device-link)")
message(FATAL_ERROR
"No cuda device objects found, device linking did not occur")
endif()
|