arm-gcc: Unix Makefiles do not track header dependencies
If Unix Makefile Generator is used with arm-gcc, modifying header file does not trigger rebuild. It only seems to work with latest CMake 3.23.0-rc.
Environment:
- CMake version: 3.20.x/3.21.x/3.22.x
- arm-gcc version: arm-gcc 9-2020-q2-update
- GNU Make version: 4.2.1
It does not seem to populate the header dependency into compiler_depend.make although I see 'Consolidate compiler generated dependencies of target main' message with VERBOSE on. I also see compiler's obj.d file generated with right output(attached the original build directory for reference).
Attaching the small experimental project that I used to debug this issue.
Steps to reproduce the issue:
cmake -DCMAKE_TOOLCHAIN_FILE=armgcc.cmake -B build_armgcc9
cd build_armgcc9
cmake --build . --target main
#Modify some prints in fsm.h now
cmake --build . --target main
Change is not recognised and rebuild is not triggered. compiler_depend.make is empty.
Edited by Brad King