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

Michael Wild themiwi at gmail.com
Wed Jul 8 02:38:03 EDT 2009


On 8. Jul, 2009, at 7:44, Xiangyun Kong wrote:

[fixed quoting]

>
> --- 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
>>
>
> Thanks.
>
> I am not sure how to ask CMAKE create unix makefiles on windows.
>
> Xiangyun
>

http://cmake.org/cmake/help/cmake2.6docs.html#opt:-Ggenerator-name

michael



More information about the CMake mailing list