Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.3.3, 5.7.0
-
None
-
fabedd399ebe4d28d6eb62c8a863f1bbcce78d3a
Description
On the Mac it is possible to use Objective-C++ to mix the Mac API and C++. These files have .mm extension and must be put in OBJECTIVE_SOURCES variable. This works OK, except when an objective-C++ class uses the Q_OBJECT macro. What is happening is that qmake generate moc file with .cpp extension even for objective-C++ files. When renaming the corresponding moc file with .mm extension and modifying the makefile the project builds fine. The build system should be able to handle to handle .mm files also when using the Q_OBJECT macro.
Attachments
Issue Links
- resulted in
-
QTCREATORBUG-17569 Qt Creator doesn't show OBJECTIVE_HEADERS files
- Closed