Wireshark-dev: Re: [Wireshark-dev] cmake giving options the compiler does not understand
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 2 Jan 2014 14:15:08 -0800
On Jan 2, 2014, at 1:55 PM, Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> wrote:

> On 01/02/14 16:34, Alexis La Goutte wrote:
>> Hi Jeff,
>> 
>> I have also some time the some error message...
> 
> Only sometimes?  I had to take that option out of CMakeLists.txt to get it compile.
> 
>> With autotools, -Wshorten-64-to-32 is limited to only C...
> 
> True but my problem is with C compiler (it doesn't get past compiling the first file).

I infer from the "cc" in

	cc: error: unrecognized command line option -Wshorten-64-to-32

that this is UN*X (or Windows with MinGW or Cygwin or something such as that).

If it's UN*X, presumably you can try autotools; with autotools, does the compiler detect that the compiler doesn't support -Wshorten-64-to-32?

If not, the test needs more work in autotools, and those changes might also apply to CMake; if so, this is an issue with the CMake tests for "does this flag work"?