on-internet
← Community

How can I allow angle "<>" brackets when including a Bazel header?

Stack Overflow ·

My project is transitioning to Bazel from CMake and I am including a snapshot of Abseil by checking it into a third_party/ top-level directory within our repository. I need to support both build systems during the transition, so I created CMakeLists.txt files and noticed that quite a lot of warnings need to be disabled for the Abseil headers to compile. For CMake, this okay because I can include the headers where I use them by using the #include <absl/strings/str_cat.h> syntax. This tells my compiler that it's a system header and to ignore the warnings so I don't have to disable them globally.

Comments

Sign in or sign up to comment and upvote.

No comments yet.