Wireshark-dev: Re: [Wireshark-dev] Building under OSX Yosemite using cmake
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 10 Nov 2014 19:02:07 -0800
On Nov 10, 2014, at 6:18 PM, David Ameiss <netshark@xxxxxxxxxxxxx> wrote:

>> On Nov 10, 2014, at 8:10 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
>> 
>> On Nov 10, 2014, at 12:43 PM, David Ameiss <netshark@xxxxxxxxxxxxx> wrote:
>> 
>>> - With the Xcode 6.1 command-line tools for Yosemite, for some reason "-I/System/Library/Frameworks/Kernel.framework/headers" gets put into the command line. This causes a whole raft of strange compile problems, apparently since the headers in that location are not complete. I did not run into this issue under Mavericks. I was able to work around this problem by adding "-D CMAKE_FIND_FRAMEWORK=LAST" to the cmake command line.
>> 
>> It sounds, from the workaround involving a CMake flag, that this indicates that it's CMake that's putting that into the Makefiles it generates.  Is that the case?
> 
> Not sure.

Yes, it's the case.  It's in tools/lemon/CMakeFiles/lemon.dir/flags.make under the build directory, for example.

I'll look further to see where that's coming from.