cmake 3.5.1 fails to track dependencies on include files where the file name is given as macro
I use the following construct:
#include "user_config.h"
#include CONFIG_USER_TARGET_INCLUDE
:
:
The user customizes the build by specifying the include file as macro. I use this approach to avoid circular dependencies, and it works fine so far. Another use case could be https://stackoverflow.com/questions/4743822/generate-include-file-name-in-a-macro.
Unfortunately, cmake failed to track the dependencies when I use a macro. The source file is not recompiled when the include files specified as macro is changed. I tried several thinks like add_dependencies(), add_custom_command(), etc. but non of them worked.
Please can you add support for this use case in an upcoming version.