Web lists-archives.com

Re: How to use CMake with cygwin/mingw toolchain?

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