[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/scripts Toolchain-cross-mingw32-linux.cmake
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] certi/scripts Toolchain-cross-mingw32-linux.cmake |
Date: |
Sat, 31 Dec 2011 13:25:04 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 11/12/31 13:25:04
Modified files:
scripts : Toolchain-cross-mingw32-linux.cmake
Log message:
More cross compiler support
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/Toolchain-cross-mingw32-linux.cmake?cvsroot=certi&r1=1.4&r2=1.5
Patches:
Index: Toolchain-cross-mingw32-linux.cmake
===================================================================
RCS file: /sources/certi/certi/scripts/Toolchain-cross-mingw32-linux.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- Toolchain-cross-mingw32-linux.cmake 20 Dec 2011 07:43:24 -0000 1.4
+++ Toolchain-cross-mingw32-linux.cmake 31 Dec 2011 13:25:04 -0000 1.5
@@ -1,7 +1,16 @@
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
-set(COMPILER_PREFIX "i586-mingw32msvc")
+# Choose an appropriate compiler prefix
+
+# for classical mingw32
+# see http://www.mingw.org/
+#set(COMPILER_PREFIX "i586-mingw32msvc")
+
+# for 32 or 64 bits mingw-w64
+# see http://mingw-w64.sourceforge.net/
+set(COMPILER_PREFIX "i686-w64-mingw32")
+#set(COMPILER_PREFIX "x86_64-w64-mingw32"
# which compilers to use for C and C++
find_program(CMAKE_RC_COMPILER NAMES ${COMPILER_PREFIX}-windres)