Skip to content

Modules/Platform/Windows-GNU.cmake: _CMAKE_TOOLCHAIN_PREFIX on windres

I just encountered this in 3.24.0 after a recent upgrade. No Cygwin or MinGW toolchain distributes a version of windres with the toolchain prefix prepended; Linux packages sometimes have a prepended toolchain name for cross-compiles. There have been proposals to do this for Windows-native, but it's never been done AFAIK.

The "solution" is to manually copy windres to <toolchain prefix>-windres, which is really suboptimal and breaks packaging badly.

This change now breaks all of my MinGW builds on Windows.

Edited by B. Scott Michel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information