mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Pass the correct command line for enabling C++11 on newer gcc compilers.
This commit is contained in:
parent
9e9ee11f60
commit
450063656a
1 changed files with 12 additions and 2 deletions
14
leocad.pro
14
leocad.pro
|
@ -19,8 +19,18 @@ win32 {
|
|||
LIBS += -ladvapi32 -lshell32
|
||||
} else {
|
||||
LIBS += -lz
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
|
||||
QMAKE_CXXFLAGS += -std=c++0x
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
|
||||
}
|
||||
|
||||
lessThan(QT_MAJOR_VERSION, 5) {
|
||||
unix {
|
||||
GCC_VERSION = $$system(g++ -dumpversion)
|
||||
greaterThan(GCC_VERSION, 4.6) {
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
} else {
|
||||
QMAKE_CXXFLAGS += -std=c++0x
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
isEmpty(QMAKE_LRELEASE) {
|
||||
|
|
Loading…
Reference in a new issue