I am using buck to build some C++ code. I have a library (not my own!) that sets some preprocessor macro that are required by another library (not my own!).
Does Buck provide a way for modules to export preprocessor macros?
For example, library A
contains a header file that sets MY_MACRO
; library B
depends on library A
and has some code that requires MY_MACRO
to be set.
With your
cxx_library
, add anexported_headers
containing the.h
files that contain your macros. This will then be made available to dependent libraries.