summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/DontResolveDeviceSymbols/verify.cmake
blob: 9bb426da0bff0ae578b921ba18bcb4a4b1a451d6 (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("${OUTPUT}" MATCHES "${SYMBOL_NAME}")
  message(FATAL_ERROR
    "The '${SYMBOL_NAME}' symbol is defined; device linking occurred!")
endif()