Skip to content

Instantly share code, notes, and snippets.

View malisipi's full-sized avatar
🐺
Segmentation Fault (Core Dumped)

Mehmet Ali Şipi malisipi

🐺
Segmentation Fault (Core Dumped)
View GitHub Profile
@malisipi
malisipi / mingw-w64-x86_64.cmake
Created July 16, 2025 00:04 — forked from peterspackman/mingw-w64-x86_64.cmake
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake ..
# This is free and unencumbered software released into the public domain.
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)