Wireshark mailing list archives

Re: cmake giving options the compiler does not understand


From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Thu, 02 Jan 2014 17:50:54 -0500

On 01/02/14 17:05, Peter Wu wrote:
Hi,

On Thursday 02 January 2014 16:02:08 Jeff Morriss wrote:
It took me a while to get my cmake build going again today; one of the
reasons was that the builds would immediately fail with:

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

As far as I can tell the problem is simply that check_c_compiler_flag()
isn't working in my version of cmake (2.8.11): it always returns 1.  Or
does it not work for others?

I sometimes have this issue too, but it got "fixed" by clearing the build
directory (`rm -rf build`) and then configuring the tree again with cmake.

Oh, weird. I blew away my build directory several times today (for other reasons) and it never solved this problem. But I tried just now and it did... Weird!

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: