make: Don't traverse backwards through include directories.
authorDylan Baker <dylan@pnwbakers.com>
Wed, 4 Oct 2017 22:33:18 +0000 (15:33 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 9 Oct 2017 20:42:43 +0000 (13:42 -0700)
Traversing back through includes is bad idea and should be avoided.
In the case here - indirect_size.h is located in the build directory
$(top_builddir)/src/glx/.

v3: - Update commit message with message provided by Emil

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/tests/Makefile.am
src/glx/tests/enum_sizes.cpp

index a41759b863e0359f0e0b4c9e9b308b3a987640cd..aab93e732a3cb761441b2eb178e46dc372b86adc 100644 (file)
@@ -5,6 +5,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src \
        -I$(top_srcdir)/src/mapi \
        -I$(top_srcdir)/src/mesa \
+       -I$(top_builddir)/src/glx \
        -I$(top_srcdir)/src/glx \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/include/GL/internal \
index 20fc75879c0ecb622d03e6506d889aeabd42acf6..6119dcbc43a1d20c0dc84a3662f7a9d6e68fc906 100644 (file)
@@ -36,7 +36,7 @@
 #include <gtest/gtest.h>
 #include <GL/gl.h>
 extern "C" {
-#include "../indirect_size.h"
+#include "indirect_size.h"
 }
 
 TEST(ValidEnumSizes, CallLists)