For this point I found another solution, for which I made another post: express the right dependencies in CMake
There are attached files, so you can evaluate if it is a “valid” solution (and maybe give me an answer if you know it )
I will analyze and try the solution that you propose in the next few days.
best regards
Max