diff options
author | Daniel Schlegel <ds.work@posteo.me> | 2021-09-28 09:00:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-28 14:11:00 (GMT) |
commit | 403f3430820b2777c137093ce631233e2b554134 (patch) | |
tree | 2f13f651a7ba9e83abbc34499f91343bb8b9fd60 | |
parent | 966d9b3967fcb054012f4b97373fa1433837d2d9 (diff) | |
download | CMake-403f3430820b2777c137093ce631233e2b554134.zip CMake-403f3430820b2777c137093ce631233e2b554134.tar.gz CMake-403f3430820b2777c137093ce631233e2b554134.tar.bz2 |
GetPrerequisites: Support CMAKE_OBJDUMP with .exe extension
When running `fixup_bundle` in a MSYS environment it fails because
`gp_tool` resolves to `objdump.exe` and not just `objdump`.
Fixes: #22381
-rw-r--r-- | Modules/GetPrerequisites.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake index e90a9b5..53584c6 100644 --- a/Modules/GetPrerequisites.cmake +++ b/Modules/GetPrerequisites.cmake @@ -746,7 +746,7 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa set(gp_regex_error "") set(gp_regex_fallback "") set(gp_regex_cmp_count 1) - elseif(gp_tool MATCHES "objdump$") + elseif(gp_tool MATCHES "objdump(\\.exe)?$") set(gp_cmd_args "-p") set(gp_regex "^\t*DLL Name: (.*\\.[Dd][Ll][Ll])${eol_char}$") set(gp_regex_error "") |