[CMake] Compiler flags for Obj-C++ files only
Bill Hoffman
bill.hoffman at kitware.com
Wed May 21 16:30:38 EDT 2008
Alan W. Irwin wrote:
> On 2008-05-21 21:08+0200 Allan Odgaard wrote:
>
>> I need to set a compiler flag for Obj-C++ files (-fobjc-call-cxx-cdtors).
>>
>> Setting it for C++ will give a warning from gcc when the source file
>> type is C++ (instead of Obj-C++).
>>
>> Is there any way to set flags for only Obj-C++ files?
>
> Shouldn't Obj-C++ be treated as a separate language (analogous to
> gfortran or C++) in the GNU Compiler Collection?
>
Yes, it should be, and there is a bug report. Obj-C++/Obj-C is
basically a Mac thing these days, and the stuff we have mostly works.
The adding a new language stuff should work for Obj-C++/Obj-C and if
someone wants to send a patch that works that would be great.
-Bill
More information about the CMake
mailing list