mirror of
https://github.com/hasherezade/pe-sieve.git
synced 2026-10-11 21:49:57 +00:00
[NOBIN] Fixed building resources with MinGW
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user