Skip to content

Commit ffc6d4f

Browse files
committed
[NOBIN] Fixed building resources with MinGW
1 parent 1b38bf7 commit ffc6d4f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
1212

1313
option(LINK_STATICALLY "Link PE-Sieve with static versions of linked libraries" ON)
1414

15+
enable_language(RC)
16+
set(CMAKE_RC_COMPILE_OBJECT
17+
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
18+
1519
add_compile_options(
1620
-fpermissive
1721
)

mingw_build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -e
55
cmake . \
66
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
77
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
8+
-DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres \
89
-DCMAKE_SYSTEM_NAME=Windows-GNU \
910
-DPESIEVE_AS_DLL=0 \
1011
-DPESIEVE_AS_STATIC_LIB=0 \

0 commit comments

Comments
 (0)