Fall back to -std=c++0x on gcc to support gcc < 4.7
This commit is contained in:
parent
a0bcae241c
commit
ac646cd8e2
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ macx {
|
|||
}
|
||||
|
||||
c++11 {
|
||||
QMAKE_CXXFLAGS += -std=c++11
|
||||
# -std=c++11 is only available in gcc>=4.7
|
||||
*g++*: QMAKE_CXXFLAGS += -std=c++0x
|
||||
else: QMAKE_CXXFLAGS += -std=c++11
|
||||
message("Using C++11")
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue