[CMake] How to avoid -${MAKEFLAGS} in the CMAKE generated Makefiles ?
Bill Hoffman
bill.hoffman at kitware.com
Tue Jul 7 20:34:59 EDT 2009
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