32ef5abb9ffa9bd46f29caef45bd0d0f3a77aa3b
[libam7xxx.git] / cmake_modules / mingw_cross_toolchain.cmake
1 SET(CMAKE_SYSTEM_NAME Windows)
2 include(CMakeForceCompiler)
3 IF("${GNU_HOST}" STREQUAL "")
4     SET(GNU_HOST i586-mingw32msvc)
5 ENDIF()
6 # Prefix detection only works with compiler id "GNU"
7 CMAKE_FORCE_C_COMPILER(${GNU_HOST}-gcc GNU)
8 # CMake doesn't automatically look for prefixed 'windres', do it manually:
9 SET(CMAKE_RC_COMPILER ${GNU_HOST}-windres)