Refine compiler system includes for different platforms

MSVC seems to be the only platform that doesn't have a non-experimental
way to include files that don't give warnings.
This commit is contained in:
Vasily
2019-02-21 18:48:53 +01:00
committed by username223
parent 7234e2ba6c
commit 9019270df8
+15 -5
View File
@@ -46,13 +46,23 @@ win32 {
src/tabcontrollers/audiomanager/IPolicyConfig.h \
src/tabcontrollers/keyboardinput/KeyboardInputWindows.h
}
*msvc* {
win32-msvc {
INCLUDEPATH += third-party/openvr/headers \
third-party/easylogging++
#easylogging++ used to be a header only lib. Now requires easylogging++.cc
SOURCES += third-party/easylogging++/easylogging++.cc
} else {
}
win32-clang-msvc {
QMAKE_CXXFLAGS += /imsvc "$$PWD/../../third-party/openvr/headers"
QMAKE_CXXFLAGS += /imsvc "$$PWD/../../third-party/easylogging++"
}
# Anything g++ or clang
# In order to suppress warnings in third party headers
*clang|*clang-g++|*clang-libc++|*g++* {
QMAKE_CXXFLAGS += -isystem ../third-party/openvr/headers
QMAKE_CXXFLAGS += -isystem ../third-party/easylogging++
SOURCES += third-party/easylogging++/easylogging++.cc
}
# easylogging++ used to be a header only lib. Now requires easylogging++.cc
SOURCES += third-party/easylogging++/easylogging++.cc