This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample toolchain file for building for Windows from an Fedora container System (base image fedora). | |
# | |
# Typical usage: | |
# *) install cross compiler: `dnf install mingw64-gcc mingw64-gcc-c++` | |
# *) cd build | |
# *) cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-mingw64.cmake .. | |
# ... best to check the path with a `find . -name "*cmake" | grep mingw | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |