arun11299 / cpp-subprocess

Subprocessing with modern C++
Other
449 stars 90 forks source link

Fix cross-compiling with mingw toolchain #99

Open hebasto opened 4 months ago

hebasto commented 4 months ago

This PR makes possible to cross-compile for Windows using the MinGW-w64 toolchain as follows:

cmake -B build -DSUBPROCESS_TESTS=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix
cmake --build build

This PR supersedes https://github.com/arun11299/cpp-subprocess/pull/63.