blue-nebula / base

Main repository of Blue Nebula, a fast-paced shooter with a unique parkour system. It is a fork of Red Eclipse and is free software.
https://blue-nebula.org
15 stars 6 forks source link

cmake: Update CMAKE_EXECUTABLE_SUFFIX for MINGW #259

Closed voidanix closed 1 year ago

voidanix commented 1 year ago

When compiling for Windows (through MINGW or not), executables absolutely require the "exe" file extension: CMAKE_EXECUTABLE_SUFFIX, which was supposed to handle that extension in the file name was overridden on our end, meaning that generated binaries were similar to *nix in that they have no extension.

This, in turn, made "make install" and similar fail on this platform.

Strangely enough, this issue was not noticed until our CI was recently updated to Ubuntu focal.

Link: https://cmake.org/cmake/help/latest/variable/CMAKE_EXECUTABLE_SUFFIX.html