[CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?

Xiangyun Kong xykong at yahoo.com
Wed Jul 8 01:44:47 EDT 2009


Thanks.

I am not sure how to ask CMAKE create unix makefiles on windows.

Xiangyun


--- On Tue, 7/7/09, Bill Hoffman <bill.hoffman at kitware.com> wrote:

> From: Bill Hoffman <bill.hoffman at kitware.com>
> Subject: Re: [CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?
> To: "Xiangyun Kong" <xykong at yahoo.com>
> Cc: cmake at cmake.org
> Date: Tuesday, July 7, 2009, 5:34 PM
> Xiangyun Kong wrote:
> > I am getting some problems in using CMAKE on windows.
> With CMAKE
> > generated Makefiles, when I use gnu make, I am getting
> the following errors,
> > 
> > NMAKE : fatal error U1065: invalid option '-'
> > 
> > It seems the -$(MAKEFLAGS) on the Make command options
> lead to the problem. The MAKEFLAGS is not defined in my
> environemtn,
> > and for some reasons, the CMAKE generated Makefile
> puts the $(MAKEFLAGS) as an option.
> > 
> > Any hints on getting rid of it would be appreciated.
> > 
> 
> Don't use gmake with NMake makefiles...  Use "Unix
> Makefiles" with gmake.
> 
> -Bill
> 


More information about the CMake mailing list