From 345262a6cc42936504797744c48b8fbd4d78fead Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Sat, 12 Feb 2022 17:10:05 -0800 Subject: [PATCH] --Code Changes -Test if directories exist before adding to INCLUDEPATH Fixes all 190 instances of [-Wmissing-include-dirs] for me --- Builds/QtCreator/defaults.pri | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Builds/QtCreator/defaults.pri b/Builds/QtCreator/defaults.pri index ce686f6..9e6c50d 100644 --- a/Builds/QtCreator/defaults.pri +++ b/Builds/QtCreator/defaults.pri @@ -50,10 +50,16 @@ win32 { #INCLUDEPATH += /usr/include INCLUDEPATH += /usr/local/include INCLUDEPATH += /usr/include/GL +exists( /usr/local/include/GL ) { INCLUDEPATH += /usr/local/include/GL +} INCLUDEPATH += /usr/include/glm +exists( /usr/local/include/GL ) { INCLUDEPATH += /usr/include/Imath +} +exists( /usr/include/OpenEXR ) { INCLUDEPATH += /usr/include/OpenEXR +} unix:!macx { INCLUDEPATH += /usr/include/libxml2