[CMake] cmake for cygwin
Clinton Stimpson
clinton at elemtech.com
Wed Oct 27 15:47:03 EDT 2010
On Friday, October 22, 2010 07:04:12 am Marco Atzeri wrote:
> --- Ven 22/10/10, Michael Wild ha scritto:
> > >> That's why one should check for CYGWIN in the
> > >> CMakeLists.txt files. IMHO this is a user-error
> >
> > and not
> >
> > >> CMake's fault. The doc clearly states about the
> >
> > WIN32
> >
> > >> variable:
> > >> WIN32 True on
> >
> > windows
> >
> > >> systems, including win64.
> > >
> > > But for cygwin is WRONG. It should be false
> >
> > One could also argue that cygwin is running under WIN32. A
> > matter of convention.
>
> Sorry again, but you are wrong.
> It is not a convention, Cygwin is a unix platform.
> Cygwin programs don't work as usual win32 programs
I did see in the Cygwin overview that the Win32 api should generally be
avoided.
However, its probably misleading that chapter 4, "Programming with Cygwin,"
shows Win32 code instead of Unix code in the examples.
http://cygwin.com/cygwin-ug-net/programming.html
Clint
More information about the CMake
mailing list