Files
CMake/Tests/RunCMake/file/READ_ELF.cmake
Brad King 41bebbe50a file: Restore error capture in undocumented READ_ELF mode
Revise the error message added by commit 115ff6a347 (cmELF: Include the
ELF parsing code unconditionally, 2021-06-17, v3.22.0-rc1~557^2) to
honor the `CAPTURE_ERROR` option.  This is needed by the call site in
`BundleUtilities` to suppress errors on non-ELF files.

Fixes: #23074
2022-01-11 12:46:06 -05:00

5 lines
170 B
CMake

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)