qeditor: add workaround for c++11 in qt4, suggest to use qt5
Change-Id: Iad7b8fd171d57228796a68cb3406914213b91926
This commit is contained in:
parent
1d58667c1f
commit
e6de6c107e
1 changed files with 10 additions and 1 deletions
|
@ -7,7 +7,16 @@ SOURCES += main.cpp mainwindow.cpp regtab.cpp backend.cpp analyser.cpp \
|
||||||
LIBS += -L../lib/ -lsocdesc -lxml2
|
LIBS += -L../lib/ -lsocdesc -lxml2
|
||||||
INCLUDEPATH += ../include/ ../../hwstub/include
|
INCLUDEPATH += ../include/ ../../hwstub/include
|
||||||
DEPENDPATH += ../
|
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
|
libsocdesc.commands = cd ../lib && make
|
||||||
QMAKE_EXTRA_TARGETS += libsocdesc
|
QMAKE_EXTRA_TARGETS += libsocdesc
|
||||||
|
|
Loading…
Reference in a new issue