This is the mail archive of the
mailing list for the Cygwin project.
Re: How to use CMake with cygwin/mingw toolchain?
- From: Peter Quiring <pquiring at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 20 Oct 2017 10:25:58 -0400
- Subject: Re: How to use CMake with cygwin/mingw toolchain?
- Authentication-results: sourceware.org; auth=none
I'm talking about the mingw that is included with cygwin, not the
I assume you use mingw-w64.org but some of it's packages are too old.
The mingw that is included with cygwin is updated more frequently, but
it lacks a version of cmake.
Try running the cygwin setup.exe and search for "mingw" and you'll see
all the toolchains plus all the precompiled libraries. Very nice.
>I am not sure I understand all the details, but I have been using
>CMake under Cygwin and MinGW-w64/MSYS2 (I have to be complete here)
>for quite a few years now. Both Cygwin and MinGW-w64/MSYS2 have their
>own versions of CMake, so I use those.
>Do you mean to cross-compile?
>2017-10-20 14:50 GMT+02:00 Peter Quiring <email@example.com>:
>> What is the current process to use the mingw toolchain that is
>> included with cygwin?
>> There use to be a -mno-cygwin option used with gcc.
>> 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.
>> Cygwin also includes cmake. How would I configure it to use the mingw
>> toolset that is included with cygwin? I also see some Qt5 *.cmake
>> modules included in the Qt5 libraries for mingw.
>> Would it be possible to include a version of cmake built for mingw?
>> Peter Quiring
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple