CPack/RPM debuginfo package objdump error suppression

objdump prints out error text if file is not an
executable and that should be suppressed as we
don't care about non executable files during that
test
This commit is contained in:
Domen Vrankar 2016-10-05 22:31:41 +02:00 committed by Brad King
parent b99bbfe88d
commit ca50c89e41
1 changed files with 2 additions and 1 deletions

View File

@ -1427,7 +1427,8 @@ function(cpack_rpm_debugsymbol_check INSTALL_FILES WORKING_DIR)
execute_process(COMMAND "${OBJDUMP_EXECUTABLE}" -h ${WORKING_DIR}/${F}
WORKING_DIRECTORY "${CPACK_TOPLEVEL_DIRECTORY}"
RESULT_VARIABLE OBJDUMP_EXEC_RESULT
OUTPUT_VARIABLE OBJDUMP_OUT)
OUTPUT_VARIABLE OBJDUMP_OUT
ERROR_QUIET)
# Check that if the given file was executable or not
if(NOT OBJDUMP_EXEC_RESULT)
string(FIND "${OBJDUMP_OUT}" "debug" FIND_RESULT)