[cmake-developers] [patch] treat .m files as c, not c++
Brad King
brad.king at kitware.com
Wed Mar 19 13:09:04 EDT 2014
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?
Thanks,
-Brad
More information about the cmake-developers
mailing list