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

2017-10-23 Thread Peter Quiring
I also found just setting CC and CXX environment variables pointing to the mingw gcc works. Thanks for the links. On Fri, Oct 20, 2017 at 5:11 PM, Yaakov Selkowitz wrote: > On 2017-10-20 07:50, Peter Quiring wrote: >> What is the current process to use the mingw toolchain

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

2017-10-20 Thread Yaakov Selkowitz
On 2017-10-20 07:50, Peter Quiring wrote: > What is the current process to use the mingw toolchain that is > included with cygwin? Treat it like any other cross-compiling scenario. > There use to be a -mno-cygwin option used with gcc. That was an ugly hack which never really worked correctly

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

2017-10-20 Thread Hans-Bernhard Bröker
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 -D CMAKE_C_COMPILER=x86_64-w64-mingw32-gcc

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

2017-10-20 Thread Arjen Markus
That's the one indeed - I have no experience with the MinGW distribution under Cygwin though. Perhaps I should try that one too :). Regards, Arjen 2017-10-20 16:25 GMT+02:00 Peter Quiring : > Hi Arjen, > > I'm talking about the mingw that is included with cygwin, not the >

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

2017-10-20 Thread Peter Quiring
Hi Arjen, I'm talking about the mingw that is included with cygwin, not the standalone version. 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

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

2017-10-20 Thread Arjen Markus
Hi Peter, 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? Regards,

How to use CMake with cygwin/mingw toolchain?

2017-10-20 Thread Peter Quiring
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