diff options
| author | 2018-09-05 10:09:14 -0700 | |
|---|---|---|
| committer | 2018-09-19 14:22:14 -0400 | |
| commit | 189cf0da7b5d1f3905558956be64f7292e753000 (patch) | |
| tree | fb2b5230f29c8c83a736f6872187d0b22c537503 | |
| parent | travis: running mingw build on travis ci (diff) | |
| download | yuzu-189cf0da7b5d1f3905558956be64f7292e753000.tar.gz yuzu-189cf0da7b5d1f3905558956be64f7292e753000.tar.xz yuzu-189cf0da7b5d1f3905558956be64f7292e753000.zip | |
Update MinGWCross.cmake to lowercase
| -rw-r--r-- | CMakeModules/MinGWCross.cmake | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/CMakeModules/MinGWCross.cmake b/CMakeModules/MinGWCross.cmake index 25750f521..29ecd1ac4 100644 --- a/CMakeModules/MinGWCross.cmake +++ b/CMakeModules/MinGWCross.cmake | |||
| @@ -1,54 +1,54 @@ | |||
| 1 | SET(MINGW_PREFIX /usr/x86_64-w64-mingw32/) | 1 | set(MINGW_PREFIX /usr/x86_64-w64-mingw32/) |
| 2 | SET(CMAKE_SYSTEM_NAME Windows) | 2 | set(CMAKE_SYSTEM_NAME Windows) |
| 3 | SET(CMAKE_SYSTEM_PROCESSOR x86_64) | 3 | set(CMAKE_SYSTEM_PROCESSOR x86_64) |
| 4 | # Actually a hack, w/o this will cause some strange errors | 4 | # Actually a hack, w/o this will cause some strange errors |
| 5 | SET(CMAKE_HOST_WIN32 TRUE) | 5 | set(CMAKE_HOST_WIN32 TRUE) |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | SET(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX}) | 8 | set(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX}) |
| 9 | SET(SDL2_PATH ${MINGW_PREFIX}) | 9 | set(SDL2_PATH ${MINGW_PREFIX}) |
| 10 | SET(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-) | 10 | set(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-) |
| 11 | 11 | ||
| 12 | # Specify the cross compiler | 12 | # Specify the cross compiler |
| 13 | SET(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc-posix) | 13 | set(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc-posix) |
| 14 | SET(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++-posix) | 14 | set(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++-posix) |
| 15 | SET(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres) | 15 | set(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres) |
| 16 | 16 | ||
| 17 | # Mingw tools | 17 | # Mingw tools |
| 18 | SET(STRIP ${MINGW_TOOL_PREFIX}strip) | 18 | set(STRIP ${MINGW_TOOL_PREFIX}strip) |
| 19 | SET(WINDRES ${MINGW_TOOL_PREFIX}windres) | 19 | set(WINDRES ${MINGW_TOOL_PREFIX}windres) |
| 20 | SET(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config) | 20 | set(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config) |
| 21 | 21 | ||
| 22 | # ccache wrapper | 22 | # ccache wrapper |
| 23 | OPTION(USE_CCACHE "Use ccache for compilation" OFF) | 23 | option(USE_CCACHE "Use ccache for compilation" OFF) |
| 24 | IF(USE_CCACHE) | 24 | if(USE_CCACHE) |
| 25 | FIND_PROGRAM(CCACHE ccache) | 25 | find_program(CCACHE ccache) |
| 26 | IF (CCACHE) | 26 | if(CCACHE) |
| 27 | MESSAGE(STATUS "Using ccache found in PATH") | 27 | message(STATUS "Using ccache found in PATH") |
| 28 | SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) | 28 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE}) |
| 29 | SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) | 29 | set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) |
| 30 | ELSE(CCACHE) | 30 | else(CCACHE) |
| 31 | MESSAGE(WARNING "USE_CCACHE enabled, but no ccache found") | 31 | message(WARNING "USE_CCACHE enabled, but no ccache found") |
| 32 | ENDIF(CCACHE) | 32 | endif(CCACHE) |
| 33 | ENDIF(USE_CCACHE) | 33 | endif(USE_CCACHE) |
| 34 | 34 | ||
| 35 | # Search for programs in the build host directories | 35 | # Search for programs in the build host directories |
| 36 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | 36 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
| 37 | 37 | ||
| 38 | 38 | ||
| 39 | # Echo modified cmake vars to screen for debugging purposes | 39 | # Echo modified cmake vars to screen for debugging purposes |
| 40 | IF(NOT DEFINED ENV{MINGW_DEBUG_INFO}) | 40 | if(NOT DEFINED ENV{MINGW_DEBUG_INFO}) |
| 41 | MESSAGE("") | 41 | message("") |
| 42 | MESSAGE("Custom cmake vars: (blank = system default)") | 42 | message("Custom cmake vars: (blank = system default)") |
| 43 | MESSAGE("-----------------------------------------") | 43 | message("-----------------------------------------") |
| 44 | MESSAGE("* CMAKE_C_COMPILER : ${CMAKE_C_COMPILER}") | 44 | message("* CMAKE_C_COMPILER : ${CMAKE_C_COMPILER}") |
| 45 | MESSAGE("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}") | 45 | message("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}") |
| 46 | MESSAGE("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}") | 46 | message("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}") |
| 47 | MESSAGE("* WINDRES : ${WINDRES}") | 47 | message("* WINDRES : ${WINDRES}") |
| 48 | MESSAGE("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}") | 48 | message("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}") |
| 49 | MESSAGE("* STRIP : ${STRIP}") | 49 | message("* STRIP : ${STRIP}") |
| 50 | MESSAGE("* USE_CCACHE : ${USE_CCACHE}") | 50 | message("* USE_CCACHE : ${USE_CCACHE}") |
| 51 | MESSAGE("") | 51 | message("") |
| 52 | # So that the debug info only appears once | 52 | # So that the debug info only appears once |
| 53 | SET(ENV{MINGW_DEBUG_INFO} SHOWN) | 53 | set(ENV{MINGW_DEBUG_INFO} SHOWN) |
| 54 | ENDIF() | 54 | endif() |