Update MinGWCross.cmake to lowercase

This commit is contained in:
tech4me 2018-09-05 10:09:14 -07:00
parent a8f54f96fc
commit 189cf0da7b

View file

@ -1,54 +1,54 @@
SET(MINGW_PREFIX /usr/x86_64-w64-mingw32/) set(MINGW_PREFIX /usr/x86_64-w64-mingw32/)
SET(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_PROCESSOR x86_64) set(CMAKE_SYSTEM_PROCESSOR x86_64)
# Actually a hack, w/o this will cause some strange errors # Actually a hack, w/o this will cause some strange errors
SET(CMAKE_HOST_WIN32 TRUE) set(CMAKE_HOST_WIN32 TRUE)
SET(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX}) set(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX})
SET(SDL2_PATH ${MINGW_PREFIX}) set(SDL2_PATH ${MINGW_PREFIX})
SET(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-) set(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-)
# Specify the cross compiler # Specify the cross compiler
SET(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc-posix) set(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc-posix)
SET(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++-posix) set(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++-posix)
SET(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres) set(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres)
# Mingw tools # Mingw tools
SET(STRIP ${MINGW_TOOL_PREFIX}strip) set(STRIP ${MINGW_TOOL_PREFIX}strip)
SET(WINDRES ${MINGW_TOOL_PREFIX}windres) set(WINDRES ${MINGW_TOOL_PREFIX}windres)
SET(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config) set(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config)
# ccache wrapper # ccache wrapper
OPTION(USE_CCACHE "Use ccache for compilation" OFF) option(USE_CCACHE "Use ccache for compilation" OFF)
IF(USE_CCACHE) if(USE_CCACHE)
FIND_PROGRAM(CCACHE ccache) find_program(CCACHE ccache)
IF (CCACHE) if(CCACHE)
MESSAGE(STATUS "Using ccache found in PATH") message(STATUS "Using ccache found in PATH")
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
ELSE(CCACHE) else(CCACHE)
MESSAGE(WARNING "USE_CCACHE enabled, but no ccache found") message(WARNING "USE_CCACHE enabled, but no ccache found")
ENDIF(CCACHE) endif(CCACHE)
ENDIF(USE_CCACHE) endif(USE_CCACHE)
# Search for programs in the build host directories # Search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Echo modified cmake vars to screen for debugging purposes # Echo modified cmake vars to screen for debugging purposes
IF(NOT DEFINED ENV{MINGW_DEBUG_INFO}) if(NOT DEFINED ENV{MINGW_DEBUG_INFO})
MESSAGE("") message("")
MESSAGE("Custom cmake vars: (blank = system default)") message("Custom cmake vars: (blank = system default)")
MESSAGE("-----------------------------------------") message("-----------------------------------------")
MESSAGE("* CMAKE_C_COMPILER : ${CMAKE_C_COMPILER}") message("* CMAKE_C_COMPILER : ${CMAKE_C_COMPILER}")
MESSAGE("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}") message("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}")
MESSAGE("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}") message("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}")
MESSAGE("* WINDRES : ${WINDRES}") message("* WINDRES : ${WINDRES}")
MESSAGE("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}") message("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}")
MESSAGE("* STRIP : ${STRIP}") message("* STRIP : ${STRIP}")
MESSAGE("* USE_CCACHE : ${USE_CCACHE}") message("* USE_CCACHE : ${USE_CCACHE}")
MESSAGE("") message("")
# So that the debug info only appears once # So that the debug info only appears once
SET(ENV{MINGW_DEBUG_INFO} SHOWN) set(ENV{MINGW_DEBUG_INFO} SHOWN)
ENDIF() endif()