Updated toolchain file README.

This commit is contained in:
Camilla Berglund 2012-03-01 17:15:37 +01:00
parent 6f3f68bad1
commit 4ac5ea331b

View File

@ -1,10 +1,19 @@
This folder contains a collection of toolchains definition in order to This directory contains a collection of toolchain definitions for cross
support cross compilation. The naming scheme is the following: compilation, currently limited to compiling Win32 binaries on Linux.
The toolchain file naming scheme is as follows:
host-system-compiler.cmake host-system-compiler.cmake
to use this at the time you run the initial cmake command use the To use these files you add a special parameter when configuring the source tree:
following parameter
-DCMAKE_TOOLCHAIN_FILE=./toolchains/XXX-XXX-XXX.cmake cmake -DCMAKE_TOOLCHAIN_FILE=<toolchain-file> .
which maps to file in this folder.
For example, to use the Debian GNU/Linux MinGW package, run CMake like this:
cmake -DCMAKE_TOOLCHAIN_FILE=CMake/linux-i586-mingw32msvc.cmake .
For more details see this article:
http://www.paraview.org/Wiki/CMake_Cross_Compiling
For more details see: http://www.paraview.org/Wiki/CMake_Cross_Compiling