How to use CMake with cygwin/mingw toolchain?
Hans-Bernhard Bröker
HBBroeker@t-online.de
Fri Oct 20 18:34:00 GMT 2017
Am 20.10.2017 um 14:50 schrieb Peter Quiring:
> The mingw versions have x86_64-w64-mingw32- or i686-w64-mingw32- added
> to their exe names. Currently I just use these directly but I want to
> use cmake.
You can just tell cmake to use them:
cmake <source_dir...> -D CMAKE_C_COMPILER=x86_64-w64-mingw32-gcc
But for the full story, you should really read the "cross compiling"
chapter of cmake's documentation.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list