I am integrating a library that includes files based on C preprocessor macros. As an example:
In my CMAKE file I have added the required definition as follows:
On both Linux and Windows the compile definition is not applied when configuring the dependencies as touching the header file does not cause a build of the dependent source files. If I simply include the header file in the code as follows everything works as you would expect:
How can I get the preprocessor macro to be applied when the header dependencies are generated? This pattern is used throughout the code base and I cannot change it.