We are using file(GET_RUNTIME_DEPENDENCIES
as a POST_BUILD
step in many targets
on Windows to copy DLLs next to the executable for debugging purposes (also .pdbs etc…). So far this procedure is exactly the same on all platforms as during install which is great.
The function file(GET_RUNTIME_DEPENDENCIES
is only supposed to be used in install steps as far as the documentation states.
However, for the POST_BUILD, we are experiencing some strange dumpbin.exe crashes which
occur to be related to the speed of the machine, and also after some multiple cmake --build
invocations the build succeeds.
We would be really interessted why this happens and if it could be potentially be fixed by CMake or if it is really the case that we should not use this function during POST_BUILD.
Thanks for your input.