GET_RUNTIME_DEPENDENCIES silent failure when cross-compiling
I ran into this issue while trying to get runtime dependencies for a Windows+PE DLL cross-compiled on Linux (x86_64-w64-mingw32). It seems that the regex to filter the DLL names in cmBinUtilsWindowsPEObjdumpGetRuntimeDependenciesTool.cxx is incorrect in that it tries to match a carriage return which isn't output by objdump on some Linux systems.
I've attached a patch (tested, works) to rectify this.
Edit: Also note that the invocation requires -DCMAKE_GET_RUNTIME_DEPENDENCIES_PLATFORM=windows+pe
, otherwise it will also silently fail. Perhaps I should upload an example project/script?
Edited by Gene Harvey