diff options
-rw-r--r-- | utils/regtools/qeditor/qeditor.pro | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/regtools/qeditor/qeditor.pro b/utils/regtools/qeditor/qeditor.pro index 5414f34e72..2737206ab3 100644 --- a/utils/regtools/qeditor/qeditor.pro +++ b/utils/regtools/qeditor/qeditor.pro @@ -7,7 +7,16 @@ SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp \ LIBS += -L../lib/ -lsocdesc -lxml2 INCLUDEPATH += ../include/ ../../hwstub/include DEPENDPATH += ../ -CONFIG += c++11 + +greaterThan(QT_MAJOR_VERSION, 4) { + # qt5 knows c++11 + CONFIG += c++11 +} +else { + message("Qt4 is deprecated, you should use Qt5") + # qt4 does not, use gcc specific code + QMAKE_CXXFLAGS += -std=c++11 +} libsocdesc.commands = cd ../lib && make QMAKE_EXTRA_TARGETS += libsocdesc |