[cmake-developers] [patch] treat .m files as c, not c++

Steve Wilson stevew at wolfram.com
Wed Mar 19 13:55:08 EDT 2014


On Mar 19, 2014, at 11:09 AM, Brad King <brad.king at kitware.com> wrote:

> On 03/19/2014 12:50 PM, Tim Blechmann wrote:
>> obj-c is a superset of c, while obj-c++ is a superset of obj-c
>> 
>> this patch corrects this behavior.
> 
> The incorrect behavior is left from the earliest days of CMake.
> Fixing this outright will change existing build behavior.  We
> would have to do this with a CMake Policy.  However, Steve Wilson
> is working on first-class Objective C and Objective C++ support:
> 
> http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9371
> 
> That will resolve this in a compatible way by allowing projects
> to enable OBJC and/or OBJCXX languages to get .m and .mm sources
> compiled properly.
> 
> Steve, do you have the work-in-progress topic published somewhere?

Not at the moment, but I’ll work on making the topic available on github before the end of the day.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140319/ead00486/attachment-0002.sig>


More information about the cmake-developers mailing list