Merge topic 'tests-hide-ldd-check-errors'

d6a6024e Tests: Hide errors from `ldd --help` output check
This commit is contained in:
Brad King 2016-07-22 09:17:53 -04:00 committed by CMake Topic Stage
commit d504999d86
1 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,8 @@ endif()
if("${CMAKE_GENERATOR}" MATCHES "Make|Ninja")
if(UNIX AND NOT CYGWIN)
execute_process(COMMAND ldd --help
OUTPUT_VARIABLE LDD_HELP)
OUTPUT_VARIABLE LDD_HELP
ERROR_VARIABLE LDD_ERR)
if("${LDD_HELP}" MATCHES
"(-r, --function-relocs.*process data and function relocations.*-u, --unused.*print unused direct dependencies)")
add_RunCMake_test(LinkWhatYouUse)