From 7ae23fd1e7e0bdb8f5bec711226957f47d8f1594 Mon Sep 17 00:00:00 2001 From: Ming Zhao Date: Tue, 10 May 2016 14:42:11 -0700 Subject: [PATCH] Add gendir to the include path so that building with bazel doesn't complain config.h can't be found. --- BUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BUILD b/BUILD index d5fc59b..c9dc00d 100644 --- a/BUILD +++ b/BUILD @@ -20,6 +20,10 @@ cc_library( ], hdrs = ["gflags.h"], copts = [ + # The config.h gets generated to the package directory of + # GENDIR, and we don't want to put it into the includes + # otherwise the dependent may pull it in by accident. + "-I$(GENDIR)/" + PACKAGE_NAME, "-Wno-sign-compare", "-DHAVE_STDINT_H", "-DHAVE_SYS_TYPES_H",