[NOBIN] Fixed building resources with MinGW (Issue #22)

This commit is contained in:
hasherezade
2025-02-22 16:50:29 +01:00
parent bb31649bb0
commit 9cd7287f91
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -12,6 +12,12 @@ endif()
# static linking for GNU compilers
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
add_compile_definitions(
_WIN32_WINNT=1536 # 0x600 aka Windows Vista required
)
+1
View File
@@ -5,6 +5,7 @@ set -e
cmake . \
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
-DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres \
-DCMAKE_SYSTEM_NAME=Windows-GNU \
-DPESIEVE_AS_DLL=0 \
-DPESIEVE_AS_STATIC_LIB=1 \