diff options
author | Mehdi Chinoune <mehdi.chinoune@hotmail.com> | 2022-03-23 15:07:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-03-25 13:07:44 (GMT) |
commit | ef2fa9b03bdd468f291109d5e198d6fb7dc3b732 (patch) | |
tree | 350d43fedbef5d2f56a2d3fc6ac63f13c4dab151 /Modules/GetPrerequisites.cmake | |
parent | 18b02cc127730e3b007c2b56c6e115d476f0d5e0 (diff) | |
download | CMake-ef2fa9b03bdd468f291109d5e198d6fb7dc3b732.zip CMake-ef2fa9b03bdd468f291109d5e198d6fb7dc3b732.tar.gz CMake-ef2fa9b03bdd468f291109d5e198d6fb7dc3b732.tar.bz2 |
GetPrerequisties: pass "-a" only to grep.
Diffstat (limited to 'Modules/GetPrerequisites.cmake')
-rw-r--r-- | Modules/GetPrerequisites.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake index 53584c6..0ba35b6 100644 --- a/Modules/GetPrerequisites.cmake +++ b/Modules/GetPrerequisites.cmake @@ -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...") |