diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2016-10-05 20:31:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-06 14:14:11 (GMT) |
commit | ca50c89e416934a586ad6839b2aaba8e7257cc2e (patch) | |
tree | 73a93b655d92cd85f82feb9acf68bda8c10aa514 /Modules | |
parent | b99bbfe88d1bb02dc903507f3e1bbe716ac04c12 (diff) | |
download | CMake-ca50c89e416934a586ad6839b2aaba8e7257cc2e.zip CMake-ca50c89e416934a586ad6839b2aaba8e7257cc2e.tar.gz CMake-ca50c89e416934a586ad6839b2aaba8e7257cc2e.tar.bz2 |
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
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackRPM.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index 3bbaae9..8f3f7ca 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -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) |