[NOBIN] Fixed building resources with MinGW

This commit is contained in:
hasherezade
2025-02-22 16:49:22 +01:00
parent 1b38bf78cb
commit ffc6d4f37d
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -12,6 +12,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
option(LINK_STATICALLY "Link PE-Sieve with static versions of linked libraries" ON)
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
add_compile_options(
-fpermissive
)
+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=0 \