Mercurial
comparison third_party/libuv/cmake-toolchains/cross-mingw32.cmake @ 173:827c6ac504cd hg-web
Merged in default here.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 19 Jan 2026 18:59:10 -0800 |
| parents | 948de3f54cea |
| children |
comparison
equal
deleted
inserted
replaced
| 151:c033667da5f9 | 173:827c6ac504cd |
|---|---|
| 1 if(NOT HOST_ARCH) | |
| 2 message(SEND_ERROR "-DHOST_ARCH required to be specified") | |
| 3 endif() | |
| 4 | |
| 5 list(APPEND CMAKE_TRY_COMPILE_PLATFORM_VARIABLES | |
| 6 HOST_ARCH | |
| 7 ) | |
| 8 | |
| 9 SET(CMAKE_SYSTEM_NAME Windows) | |
| 10 set(COMPILER_PREFIX "${HOST_ARCH}-w64-mingw32") | |
| 11 find_program(CMAKE_RC_COMPILER NAMES ${COMPILER_PREFIX}-windres) | |
| 12 find_program(CMAKE_C_COMPILER NAMES ${COMPILER_PREFIX}-gcc) | |
| 13 find_program(CMAKE_CXX_COMPILER NAMES ${COMPILER_PREFIX}-g++) | |
| 14 | |
| 15 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | |
| 16 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | |
| 17 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |