From b0310cb34e912d15340d02a179a81311325b4199 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 27 Feb 2023 05:48:23 -0600 Subject: set CMAKE_SYSTEM_PROCESSOR when cross compiling handle x86 as option for 32-bit x86 on Windows --- scripts/i686-w64-mingw32.cmake | 1 + scripts/x86_64-w64-mingw32.cmake | 1 + 2 files changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/i686-w64-mingw32.cmake b/scripts/i686-w64-mingw32.cmake index 58efd58..bad60db 100644 --- a/scripts/i686-w64-mingw32.cmake +++ b/scripts/i686-w64-mingw32.cmake @@ -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) diff --git a/scripts/x86_64-w64-mingw32.cmake b/scripts/x86_64-w64-mingw32.cmake index c52b606..df65165 100644 --- a/scripts/x86_64-w64-mingw32.cmake +++ b/scripts/x86_64-w64-mingw32.cmake @@ -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) -- cgit v1.2.3-55-g6feb