From 41952b683a8f33e9e8dc24df5c763cf10938cd6a Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sun, 15 Nov 2015 20:55:25 -0500 Subject: [PATCH] add 32 bit flag to older MinGW toolchain --- tools/Toolchain-MinGW-w64-32bit.cmake | 3 +++ tools/Toolchain-MinGW-w64-64bit.cmake | 2 ++ tools/Toolchain-mingw32.cmake | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/Toolchain-MinGW-w64-32bit.cmake b/tools/Toolchain-MinGW-w64-32bit.cmake index 17347e0..db5c427 100644 --- a/tools/Toolchain-MinGW-w64-32bit.cmake +++ b/tools/Toolchain-MinGW-w64-32bit.cmake @@ -1,5 +1,8 @@ # Settings for compiling for Windows 32-bit machines using MinGW-w64 +set (IS_CROSSCOMPILING "YES") +set (IS_32_BIT "32-") + set (CMAKE_SYSTEM_NAME Windows) set (CMAKE_C_COMPILER i686-w64-mingw32-gcc) diff --git a/tools/Toolchain-MinGW-w64-64bit.cmake b/tools/Toolchain-MinGW-w64-64bit.cmake index 9d2b4f8..2acb26d 100644 --- a/tools/Toolchain-MinGW-w64-64bit.cmake +++ b/tools/Toolchain-MinGW-w64-64bit.cmake @@ -1,5 +1,7 @@ # Settings for compiling for Windows 64-bit machines using MinGW-w64 +set (IS_CROSSCOMPILING "YES") + set (CMAKE_SYSTEM_NAME Windows) set (CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) diff --git a/tools/Toolchain-mingw32.cmake b/tools/Toolchain-mingw32.cmake index f529580..3e807ba 100644 --- a/tools/Toolchain-mingw32.cmake +++ b/tools/Toolchain-mingw32.cmake @@ -1,4 +1,7 @@ -# Settings for compiling under MinGW32 +# Settings for compiling for Windows 32-bit machines + +set (IS_CROSSCOMPILING "YES") +set (IS_32_BIT "32-") set (CMAKE_SYSTEM_NAME Windows) -- 2.40.0