set CMAKE_SYSTEM_PROCESSOR when cross compiling

handle x86 as option for 32-bit x86 on Windows
This commit is contained in:
Brent Cook
2023-02-27 05:48:23 -06:00
parent 703f430428
commit b0310cb34e
3 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_PROCESSOR i386)
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)

View File

@@ -1,4 +1,5 @@
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_PROCESSOR amd64)
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)