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 _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake