Skip to content

Commit

Permalink
add mingw-x86.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Mar 20, 2023
1 parent ac28c1d commit 3df7b70
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mingw-x86.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SET(CMAKE_SYSTEM_NAME Windows)

SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
SET(CMAKE_SYSTEM_PROCESSOR X86)

set(CMAKE_EXE_LINKER_FLAGS "-static")

SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

0 comments on commit 3df7b70

Please sign in to comment.