IF(CMAKE_CROSSCOMPILING)
_both(
"#\n# CROSSCOMPILING!\n"
- "# DEAL_II_NATIVE: ${DEAL_II_NATIVE}\n"
)
ENDIF()
--- /dev/null
+#
+# Example Toolchain file for a MinGW32 cross compiler for Windows64
+#
+
+SET(CMAKE_SYSTEM_NAME Windows)
+SET(CMAKE_SYSTEM_PROCESSOR "x86_64")
+
+SET(CMAKE_RC_COMPILER "x86_64-w64-mingw32-windres")
+SET(CMAKE_CXX_COMPILER "x86_64-w64-mingw32-g++")
+SET(CMAKE_C_COMPILER "x86_64-w64-mingw32-gcc")
+SET(CMAKE_Fortran_COMPILER "x86_64-w64-mingw32-gfortran") # alternatively set to '/bin/false'
+
+SET(CMAKE_FIND_ROOT_PATH "/usr/x86_64-w64-mingw32/")
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
</p>
<p>
- Assuming you have a working cross compilation toolchain, set up a
- <a href="Toolchain.sample"><i>toolchain file</i></a> next. With that
- invoke <code>cmake</code> with something like:
+ Assuming you have a working cross compilation toolchain, the next
+ step is to set up a
+ <a href="Toolchain.sample"><i>toolchain file</i></a>
+ (or for for
+ <a href="Toolchain-x86_64-w64-mingw32.sample">Windows64 using MinGW</a>).
+ After that invoke <code>cmake</code> with something like:
<pre>
+
cmake -DCMAKE_TOOLCHAIN_FILE=<...>/Toolchain.sample
-DDEAL_II_FORCE_BUNDLED_BOOST=ON
-DDEAL_II_ALLOW_AUTODETECTION=OFF
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams