Merge branch 'dbus-1.10'
[platform/upstream/dbus.git] / cmake / i686-w64-mingw32.cmake
1 # Toolchain for mingw-w64 32-bit compilers, as shipped in Debian/Ubuntu.
2
3 set(GNU_HOST i686-w64-mingw32)
4 set(CMAKE_SYSTEM_PROCESSOR "i686")
5
6 set(COMPILER_PREFIX "${GNU_HOST}-")
7
8 set(CMAKE_SYSTEM_NAME "Windows")
9 set(CMAKE_CROSSCOMPILING TRUE)
10 set(WIN32 TRUE)
11 set(MINGW TRUE)
12
13 include(CMakeForceCompiler)
14 cmake_force_c_compiler(${COMPILER_PREFIX}gcc GNU)
15 cmake_force_cxx_compiler(${COMPILER_PREFIX}g++ GNU)
16 set(CMAKE_RC_COMPILER ${COMPILER_PREFIX}windres)
17
18 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
19 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
20 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)