diff options
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 |
