MSYS.cmake 820 B

1234567891011121314151617181920212223
  1. # The target environment
  2. SET(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX})
  3. SET(CMAKE_INSTALL_PREFIX ${MINGW_PREFIX})
  4. # Windows msys mingw ships with a mostly-suitable preconfigured environment
  5. SET(STRIP ${MINGW_PREFIX}/bin/strip)
  6. SET(CMAKE_RC_COMPILER ${MINGW_PREFIX}/bin/windres)
  7. SET(CMAKE_C_COMPILER ${MINGW_PREFIX}/bin/gcc)
  8. SET(CMAKE_CXX_COMPILER ${MINGW_PREFIX}/bin/g++)
  9. # For 32-bit vst support
  10. IF(WIN64)
  11. # Specify the 32-bit cross compiler
  12. SET(CMAKE_C_COMPILER32 ${MINGW_PREFIX32}/bin/gcc)
  13. SET(CMAKE_CXX_COMPILER32 ${MINGW_PREFIX32}/bin/g++)
  14. ENDIF()
  15. # Msys compiler does not support @CMakeFiles/Include syntax
  16. SET(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
  17. SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
  18. SET(LMMS_BUILD_MSYS 1)