[CMake] Compiler flags for Obj-C++ files only
clinton at elemtech.com
clinton at elemtech.com
Wed May 21 15:49:17 EDT 2008
On Wednesday 21 May 2008 1:08:40 pm 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?
>
Does
set_source_files_properties( ${obj_Cpp_files} PROPERTIES
COMPILE_FLAGS "-fobjc-call-cxx-cdtors")
work?
I've done that kind of thing with mixed fortran & C projects before.
Clint
More information about the CMake
mailing list