summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMing Zhao <mzhao@luminatewireless.com>2016-05-10 14:42:11 -0700
committerMing Zhao <mzhao@luminatewireless.com>2016-05-10 14:42:11 -0700
commit7ae23fd1e7e0bdb8f5bec711226957f47d8f1594 (patch)
treeed80c9597800716fe6a40e84b69f0206b13c2aa2
parent8de80b9a2d8dbcd64e2a2c183f12edd464eea2b3 (diff)
downloadgflags-7ae23fd1e7e0bdb8f5bec711226957f47d8f1594.tar.gz
gflags-7ae23fd1e7e0bdb8f5bec711226957f47d8f1594.tar.bz2
gflags-7ae23fd1e7e0bdb8f5bec711226957f47d8f1594.zip
Add gendir to the include path so that building with bazel doesn't
complain config.h can't be found.
-rw-r--r--BUILD4
1 files changed, 4 insertions, 0 deletions
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",