file(READ_ELF XXX) file(READ_ELF XXX RPATH YYY) file(READ_ELF ${CMAKE_CURRENT_LIST_FILE} RPATH YYY CAPTURE_ERROR err) file(READ_ELF ${CMAKE_CURRENT_LIST_FILE} RPATH YYY)