diff options
| author | Mel <einebeere@gmail.com> | 2024-02-04 20:50:29 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-04 20:50:29 +0100 |
| commit | 44b87e9751f054ed5406042d69bbc130331d660e (patch) | |
| tree | 1030b4539dcdd96924b3126d52a2b564d6e2eccd /toolchains | |
| parent | f08eae304a4fe986c9cf91a976e0fdfad9f2a16a (diff) | |
| download | meowcraft-44b87e9751f054ed5406042d69bbc130331d660e.tar.zst meowcraft-44b87e9751f054ed5406042d69bbc130331d660e.zip | |
Cross-compiling to Windows using MinGW-w64 (fully statically)
Diffstat (limited to 'toolchains')
| -rw-r--r-- | toolchains/MinGW.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchains/MinGW.cmake b/toolchains/MinGW.cmake new file mode 100644 index 0000000..d75ebcb --- /dev/null +++ b/toolchains/MinGW.cmake @@ -0,0 +1,13 @@ +set(CMAKE_SYSTEM_NAME Windows) +set(CMAKE_SYSTEM_PROCESSOR x86_64) + +SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) +SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) + +# MinGW toolchain installed through Homebrew +set(CMAKE_FIND_ROOT_PATH /usr/local/Cellar/mingw-w64/11.0.1/toolchain-x86_64/x86_64-w64-mingw32) + +# Don't search for programs in the host environment, or at least try not to +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) \ No newline at end of file |
