Skip to content
Snippets Groups Projects
Commit d504999d authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

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

d6a6024e Tests: Hide errors from `ldd --help` output check
parents 1fc340f0 d6a6024e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment