aboutsummaryrefslogtreecommitdiff
path: root/cmake/toolchain-mingw.cmake
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-11-19 11:54:48 +0000
committerSimon Tatham <anakin@pobox.com>2023-11-19 15:12:47 +0000
commit08365fb260ae6e32442dd9f196e65d13facb4b33 (patch)
tree553b14f09a856d6138bee090b6bf236672f14ab3 /cmake/toolchain-mingw.cmake
parent595338fa43d40f356f04b8704f72f060651669e8 (diff)
downloadpuzzles-08365fb260ae6e32442dd9f196e65d13facb4b33.zip
puzzles-08365fb260ae6e32442dd9f196e65d13facb4b33.tar.gz
puzzles-08365fb260ae6e32442dd9f196e65d13facb4b33.tar.bz2
puzzles-08365fb260ae6e32442dd9f196e65d13facb4b33.tar.xz
Windows: add a VERSIONINFO resource to the puzzle binaries.
This includes the textual version number in its existing form (yyyymmdd followed by an abbreviated git hash). The four-part binary version is set to 1 followed by year, month and day; if I ever want to change that, I can increment the initial 1. FileDescription is taken from the existing DESCRIPTION string provided to each puzzle() statement in CMakeLists.txt. This means that puzzles.rc now always defines at least one resource, so we can remove the workaround for MinGW's windres not being able to cope with an empty .rc file, which added a dummy resource in the absence of an icon.
Diffstat (limited to 'cmake/toolchain-mingw.cmake')
-rw-r--r--cmake/toolchain-mingw.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmake/toolchain-mingw.cmake b/cmake/toolchain-mingw.cmake
index 68ee249..a00fc7d 100644
--- a/cmake/toolchain-mingw.cmake
+++ b/cmake/toolchain-mingw.cmake
@@ -8,5 +8,3 @@ set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
set(CMAKE_AR x86_64-w64-mingw32-ar)
set(CMAKE_RANLIB x86_64-w64-mingw32-ranlib)
-
-add_compile_definitions(MINGW32_FIX)