mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
GetPrerequisties: pass "-a" only to grep.
This commit is contained in:
committed by
Brad King
parent
18b02cc127
commit
ef2fa9b03b
@@ -755,11 +755,13 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
|
||||
# objdump generates copious output so we create a grep filter to pre-filter results
|
||||
if(WIN32)
|
||||
find_program(gp_grep_cmd findstr)
|
||||
set(gp_grep_cmd_arg "")
|
||||
else()
|
||||
find_program(gp_grep_cmd grep)
|
||||
set(gp_grep_cmd_arg "-a")
|
||||
endif()
|
||||
if(gp_grep_cmd)
|
||||
set(gp_cmd_maybe_filter COMMAND ${gp_grep_cmd} "-a" "^[[:blank:]]*DLL Name: ")
|
||||
set(gp_cmd_maybe_filter COMMAND ${gp_grep_cmd} "${gp_grep_cmd_arg}" "^[[:blank:]]*DLL Name: ")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "warning: gp_tool='${gp_tool}' is an unknown tool...")
|
||||
|
||||
Reference in New Issue
Block a user