certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts Toolchain-cross-mingw32-linux.cmake


From: certi-cvs
Subject: [certi-cvs] certi/scripts Toolchain-cross-mingw32-linux.cmake
Date: Tue, 01 Feb 2011 12:51:18 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      11/02/01 12:51:18

Added files:
        scripts        : Toolchain-cross-mingw32-linux.cmake 

Log message:
        Add toolchain for cross-compiling (not working yet)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/Toolchain-cross-mingw32-linux.cmake?cvsroot=certi&rev=1.1

Patches:
Index: Toolchain-cross-mingw32-linux.cmake
===================================================================
RCS file: Toolchain-cross-mingw32-linux.cmake
diff -N Toolchain-cross-mingw32-linux.cmake
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ Toolchain-cross-mingw32-linux.cmake 1 Feb 2011 12:51:18 -0000       1.1
@@ -0,0 +1,17 @@
+# the name of the target operating system
+SET(CMAKE_SYSTEM_NAME Windows)
+
+# which compilers to use for C and C++
+SET(CMAKE_C_COMPILER i686-pc-mingw32-gcc)
+SET(CMAKE_CXX_COMPILER i686-pc-mingw32-g++)
+
+# here is the target environment located
+SET(CMAKE_FIND_ROOT_PATH /usr/i686-pc-mingw32/sys-root/mingw)
+
+# adjust the default behaviour of the FIND_XXX() commands:
+# search headers and libraries in the target environment, search 
+# programs in the host environment
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]