diff --git a/dust3d.pro b/dust3d.pro index caabab42..b30d8c7f 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -96,13 +96,29 @@ DEFINES += "PROJECT_DEFINED_APP_REFERENCE_GUIDE_URL=\"\\\"$$REFERENCE_GUIDE_URL\ DEFINES += "PROJECT_DEFINED_APP_UPDATES_CHECKER_URL=\"\\\"$$UPDATES_CHECKER_URL\\\"\"" DEFINES += "PROJECT_DEFINED_APP_PLATFORM=\"\\\"$$PLATFORM\\\"\"" -QMAKE_CXXFLAGS_RELEASE -= -O -QMAKE_CXXFLAGS_RELEASE -= -O1 -QMAKE_CXXFLAGS_RELEASE -= -O2 +macx { + QMAKE_CXXFLAGS_RELEASE -= -O + QMAKE_CXXFLAGS_RELEASE -= -O1 + QMAKE_CXXFLAGS_RELEASE -= -O2 -QMAKE_CXXFLAGS_RELEASE += -O3 + QMAKE_CXXFLAGS_RELEASE += -O3 -QMAKE_CXXFLAGS += -std=c++11 + QMAKE_CXXFLAGS += -std=c++11 +} + +unix:!macx { + QMAKE_CXXFLAGS_RELEASE -= -O + QMAKE_CXXFLAGS_RELEASE -= -O1 + QMAKE_CXXFLAGS_RELEASE -= -O2 + + QMAKE_CXXFLAGS_RELEASE += -O3 + + QMAKE_CXXFLAGS += -std=c++11 +} + +win32 { + QMAKE_CXXFLAGS += /O2 +} include(thirdparty/QtAwesome/QtAwesome/QtAwesome.pri)