Index: ObjQt.pro ================================================================== --- ObjQt.pro +++ ObjQt.pro @@ -33,11 +33,19 @@ QtGui/QtPaintDevice.mm \ QtWidgets/QtAction.mm \ QtWidgets/QtApplication.mm \ QtWidgets/QtWidget.mm -QMAKE_CXXFLAGS += $$system("objfw-config --cppflags --objcflags --cxxflags") -QMAKE_CXXFLAGS_WARN_ON = -Wall \ - -Werror \ - -Wsemicolon-before-method-body \ - -Wobjc-missing-property-synthesis +OBJCFLAGS += $$system("objfw-config --cppflags --objcflags --cxxflags") +OBJCFLAGS_WARN_ON = -Wall \ + -Werror \ + -Wsemicolon-before-method-body \ + -Wobjc-missing-property-synthesis + +# qmake treats .mm files as C++ on Mac, but as C on everything else +macx:QMAKE_CXXFLAGS += $$OBJCFLAGS +macx:QMAKE_CXXFLAGS_WARN_ON = $$OBJCFLAGS_WARN_ON +!macx:QMAKE_CC = clang++ +!macx:QMAKE_CFLAGS += -std=c++11 $$OBJCFLAGS +!macx:QMAKE_CFLAGS_WARN_ON = $$OBJCFLAGS_WARN_ON + LIBS += $$system("objfw-config --ldflags --libs")