I’m trying to convert a makefile GHS project to a Cmake one and get issues with .h files dependencies. As far as I understand GHS(201355) does not support .d files generation. Existing makefile project uses gcc as a workaround to generate .d files. How can I do such a trick (or some other workaround) in Cmake? I do not want to add .h files manually.
May be, with our GHS compiler we had only the problem with the dependency file name generated : file.c -> file.d was generated from compiler and not used from ninja.