New to cmake, trying to migrate a big project from make to cmake.
At the moment I try to understand how dependencies works.
I posted this on stackoverflow with very few views and no valid answers, may be posting here will bring more luck
In the stko post I used a basic example where I use ld -r on purpose as a tool that build 1 file based on a set of input files. Very often cmake post ask why not using add_lib() add_exe() etc, this is because I try to understand dep/act mechanism to run my tools on set of input (lex, yacc for instance but not limited to)
In my example in stackoverflow post, I can build successfully the initial build but can not touch 1 .c file and rebuild what’s need to be rebuild. Hope one can help me.