Hey,<br><br><br>I worked on a patch for supporting dep-tracking with GetPrequesites when cross-compiling for Windows with MinGW.<br><br>While doing this I noticed neither WIN32 nor CMAKE_CROSSCOMPILING are defined at CPack time, why?<br>
This is the reason my code in the patch is not in the WIN32 block above and I couldn't guess the gp_tool correctly.<br><br>A hardcoded list of .dll names is for sure not really elegant, but I don't know of any way to check if a required .dll is a windows system library. On Linux of course there are no Windows system dlls in a certain folder and the absence of such a dll doesn't mean anything either because an import lib (.dll.a usually) is enough to link against.<br>
<br>The patch is probably not ready to be upstreamed but I'm happy to fix issues or follow a nicer approach if you point me to it.<br><br>Best regards,<br>Dominik<br>