Fix compile errors on (macOS Sonoma) x (Qt5 MacPorts)

This commit is contained in:
Kazunari Sekigawa 2025-11-14 18:42:58 +09:00
parent a6696f06e0
commit 68ebbe4abc
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
# capnp needs C++ 14 in version 1.0.1
# Qt6 comes with C++ 17 requirement.
equals(HAVE_QT, "0") || lessThan(QT_MAJOR_VERSION, 6) {
# (1) and (2) are required by (macOS Sonoma) x (Qt5 MacPorts)
CONFIG -= c++11 # (1)
CONFIG += c++14 # (2)
QMAKE_CXXFLAGS += -std=c++14
}