Merge topic 'GetPrerequisites-findstr'
867b73e2
GetPrerequisites: Optimize on Windows by filtering `objdump` output
This commit is contained in:
commit
ed59f4ba67
|
@ -747,7 +747,11 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
|
||||||
set(gp_regex_fallback "")
|
set(gp_regex_fallback "")
|
||||||
set(gp_regex_cmp_count 1)
|
set(gp_regex_cmp_count 1)
|
||||||
# objdump generaates copious output so we create a grep filter to pre-filter results
|
# objdump generaates copious output so we create a grep filter to pre-filter results
|
||||||
|
if(WIN32)
|
||||||
|
find_program(gp_grep_cmd findstr)
|
||||||
|
else()
|
||||||
find_program(gp_grep_cmd grep)
|
find_program(gp_grep_cmd grep)
|
||||||
|
endif()
|
||||||
if(gp_grep_cmd)
|
if(gp_grep_cmd)
|
||||||
set(gp_cmd_maybe_filter COMMAND ${gp_grep_cmd} "^[[:blank:]]*DLL Name: ")
|
set(gp_cmd_maybe_filter COMMAND ${gp_grep_cmd} "^[[:blank:]]*DLL Name: ")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue