From 3fed92dc812c31527c287f7b20ea23447894f9ee Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 30 Oct 2013 23:21:55 +0000 Subject: [PATCH] Provide an example toolchain file for MinGW on Windows64 git-svn-id: https://svn.dealii.org/trunk@31492 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_finalize.cmake | 1 - .../Toolchain-x86_64-w64-mingw32.sample | 16 ++++++++++++++++ deal.II/doc/developers/porting.html | 10 +++++++--- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample diff --git a/deal.II/cmake/setup_finalize.cmake b/deal.II/cmake/setup_finalize.cmake index 8a084e5027..1b3849d7a4 100644 --- a/deal.II/cmake/setup_finalize.cmake +++ b/deal.II/cmake/setup_finalize.cmake @@ -131,7 +131,6 @@ _detailed( IF(CMAKE_CROSSCOMPILING) _both( "#\n# CROSSCOMPILING!\n" - "# DEAL_II_NATIVE: ${DEAL_II_NATIVE}\n" ) ENDIF() diff --git a/deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample b/deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample new file mode 100644 index 0000000000..68e826f9e3 --- /dev/null +++ b/deal.II/doc/developers/Toolchain-x86_64-w64-mingw32.sample @@ -0,0 +1,16 @@ +# +# 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) diff --git a/deal.II/doc/developers/porting.html b/deal.II/doc/developers/porting.html index 2408227120..82b6efea8b 100644 --- a/deal.II/doc/developers/porting.html +++ b/deal.II/doc/developers/porting.html @@ -143,10 +143,14 @@

- Assuming you have a working cross compilation toolchain, set up a - toolchain file next. With that - invoke cmake with something like: + Assuming you have a working cross compilation toolchain, the next + step is to set up a + toolchain file + (or for for + Windows64 using MinGW). + After that invoke cmake with something like:

+
     cmake -DCMAKE_TOOLCHAIN_FILE=<...>/Toolchain.sample
           -DDEAL_II_FORCE_BUNDLED_BOOST=ON
           -DDEAL_II_ALLOW_AUTODETECTION=OFF
-- 
2.39.5