mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-06 10:59:31 -06:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Treat Qt's headers as system headers
|
|
QMAKE_CXXFLAGS += -isystem $$shell_quote($$[QT_INSTALL_HEADERS]/)
|
|
for(module, QT) {
|
|
equals(module, "testlib"): \
|
|
QMAKE_CXXFLAGS += -isystem $$shell_quote($$[QT_INSTALL_HEADERS]/QtTest/)
|
|
|
|
else {
|
|
# Capitalize a first letter, result: -isystem .../include/QtCore/
|
|
moduleList = $$split(module, )
|
|
QMAKE_CXXFLAGS += \
|
|
-isystem $$shell_quote($$[QT_INSTALL_HEADERS]/Qt$$upper(\
|
|
$$take_first(moduleList))$$join(moduleList, )/)
|
|
}
|
|
}
|
|
unset(moduleList)
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON *= \
|
|
-Wall \
|
|
-Wextra \
|
|
-Weffc++ \
|
|
-Werror \
|
|
-Wfatal-errors \
|
|
-Winvalid-pch \
|
|
-Wcast-qual \
|
|
-Wcast-align \
|
|
-Woverloaded-virtual \
|
|
-Wold-style-cast \
|
|
-Wshadow \
|
|
-Wundef \
|
|
-Wfloat-equal \
|
|
-Wformat-security \
|
|
-Wdouble-promotion \
|
|
-Wconversion \
|
|
-Wzero-as-null-pointer-constant \
|
|
-Wuninitialized \
|
|
-pedantic \
|
|
-pedantic-errors \
|
|
|
|
# Clang 12 still doesn't support -Wstrict-null-sentinel
|
|
!clang: QMAKE_CXXFLAGS_WARN_ON *= -Wstrict-null-sentinel
|