Mercurial
comparison third_party/libuv/cmake-toolchains/cross-mingw32.cmake @ 160:948de3f54cea
[ThirdParty] Added libuv
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 14 Jan 2026 19:39:52 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 159:05cf9467a1c3 | 160:948de3f54cea |
|---|---|
| 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) |