summaryrefslogtreecommitdiffstats
path: root/Modules/GetPrerequisites.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2019-06-14 06:38:24 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2019-06-19 05:14:31 (GMT)
commit8d59ebb7049f30f2c56f6d89b8e6c8db907c0324 (patch)
tree057fc24c093cd26845830e6b49d2ad968428111c /Modules/GetPrerequisites.cmake
parente33f4cb0cb18a03aa12b308ba654ec5f305365f8 (diff)
downloadCMake-8d59ebb7049f30f2c56f6d89b8e6c8db907c0324.zip
CMake-8d59ebb7049f30f2c56f6d89b8e6c8db907c0324.tar.gz
CMake-8d59ebb7049f30f2c56f6d89b8e6c8db907c0324.tar.bz2
GetPrerequisites: use CMAKE_OBJDUMP if it is set
Diffstat (limited to 'Modules/GetPrerequisites.cmake')
-rw-r--r--Modules/GetPrerequisites.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 41d9dc1..2beea00 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -710,7 +710,9 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
find_program(gp_dumpbin "dumpbin" PATHS ${gp_cmd_paths})
if(gp_dumpbin)
set(gp_tool "dumpbin")
- else() # Try harder. Maybe we're on MinGW
+ elseif(CMAKE_OBJDUMP) # Try harder. Maybe we're on MinGW
+ set(gp_tool "${CMAKE_OBJDUMP}")
+ else()
set(gp_tool "objdump")
endif()
endif()