summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shishenko <alex@shishenko.com>2016-08-06 14:32:44 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-08 18:05:21 (GMT)
commit5f3c8f6ab2c6633bdbfc083b9e96b477c1700c80 (patch)
tree81d2d5259b524d6aa1f63716c95142523eace074
parent955c2a630aae9b925b468e98e7c323384d943cb0 (diff)
downloadCMake-5f3c8f6ab2c6633bdbfc083b9e96b477c1700c80.zip
CMake-5f3c8f6ab2c6633bdbfc083b9e96b477c1700c80.tar.gz
CMake-5f3c8f6ab2c6633bdbfc083b9e96b477c1700c80.tar.bz2
GetPrerequisites: Always filter objdump output as text
When using `grep` to filter the output, add the `-a` flag to tell it never to treat the output as binary. Otherwise when LANG != C in the environment the non-ascii text may break the filter.
-rw-r--r--Modules/GetPrerequisites.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 322cbd3..2881e7f 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -753,7 +753,7 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
find_program(gp_grep_cmd grep)
endif()
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} "-a" "^[[:blank:]]*DLL Name: ")
endif()
else()
message(STATUS "warning: gp_tool='${gp_tool}' is an unknown tool...")