Describe the bug
Given this directory structure, where both .cpp files include the .hpp file as <xxx/xxx.hpp>:
xxx/include/xxx/xxx.hpp
xxx/src/xxx.cpp
xxx/test/test.cpp
To Reproduce
Changing xxx/src/xxx.cpp's content will cause lib/libxxx.a to be rebuilt. But it won't cause bin/xxx_test to be rebuilt. That only happens when xxx/test/test.cpp or xxx/include/xxx/xxx.hpp is changed.
Expected behavior
Changing source files should not just affect their direct outputs but their indirect ones as well.
System (please complete the following information):
Describe the bug Given this directory structure, where both
.cpp
files include the.hpp
file as<xxx/xxx.hpp>
:To Reproduce Changing
xxx/src/xxx.cpp
's content will causelib/libxxx.a
to be rebuilt. But it won't causebin/xxx_test
to be rebuilt. That only happens whenxxx/test/test.cpp
orxxx/include/xxx/xxx.hpp
is changed.Expected behavior Changing source files should not just affect their direct outputs but their indirect ones as well.
System (please complete the following information):