Broken cpp dependencies when using makefiles generator in 3.15
After upgrading to cmake 3.15 dependencies to headers seem broken, modifying them no longer causes dependees to rebuild. This only seems to occur using the makefiles generator, the ninja generator seems fine.
I can't get an easy reproduction on simple projects, the dependency information seems to work ok there. Any ideas?
I've attached some of the dependency information from the build output:
3.14.3:
depend.internal:
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
baseline/utility/CMakeFiles/utility_tests.dir/test/algorithm_test.cpp.o
../baseline/utility/include/maco/utility/algorithm.hpp
../dependencies/gtest/fused/gtest/gtest.h
/home/chris/projects/maco/common-c/baseline/utility/test/algorithm_test.cpp
baseline/utility/CMakeFiles/utility_tests.dir/test/array_view_test.cpp.o
../baseline/utility/include/maco/utility/array_view.hpp
../dependencies/gtest/fused/gtest/gtest.h
../prebuilt/boost-linux-GNU/include/boost/config.hpp
../prebuilt/boost-linux-GNU/include/boost/config/compiler/borland.hpp
... more
depend.make
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
baseline/utility/CMakeFiles/utility_tests.dir/test/algorithm_test.cpp.o: ../baseline/utility/include/maco/utility/algorithm.hpp
baseline/utility/CMakeFiles/utility_tests.dir/test/algorithm_test.cpp.o: ../dependencies/gtest/fused/gtest/gtest.h
baseline/utility/CMakeFiles/utility_tests.dir/test/algorithm_test.cpp.o: ../baseline/utility/test/algorithm_test.cpp
baseline/utility/CMakeFiles/utility_tests.dir/test/array_view_test.cpp.o: ../baseline/utility/include/maco/utility/array_view.hpp
baseline/utility/CMakeFiles/utility_tests.dir/test/array_view_test.cpp.o: ../dependencies/gtest/fused/gtest/gtest.h
... more
3.15.0:
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.15
baseline/utility/CMakeFiles/utility_tests.dir/test/algorithm_test.cpp.o
/home/chris/projects/maco/common-c/baseline/utility/test/algorithm_test.cpp
baseline/utility/CMakeFiles/utility_tests.dir/test/array_view_test.cpp.o
/home/chris/projects/maco/common-c/baseline/utility/test/array_view_test.cpp
... more
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.15
baseline/utility/CMakeFiles/utility_tests.dir/test/algorithm_test.cpp.o: ../baseline/utility/test/algorithm_test.cpp
baseline/utility/CMakeFiles/utility_tests.dir/test/array_view_test.cpp.o: ../baseline/utility/test/array_view_test.cpp
...more