diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-06-14 06:38:24 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2019-06-19 05:14:31 (GMT) |
commit | 8d59ebb7049f30f2c56f6d89b8e6c8db907c0324 (patch) | |
tree | 057fc24c093cd26845830e6b49d2ad968428111c /Modules/GetPrerequisites.cmake | |
parent | e33f4cb0cb18a03aa12b308ba654ec5f305365f8 (diff) | |
download | CMake-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.cmake | 4 |
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() |