|
|
|
|
|
by junon
1910 days ago
|
|
This requires a lot of extra work and doesn't often work like you'd expect. However, this is a shortcoming of CMake not having a good dependency model aside from the old (and IMO not far from obsolete) system dependencies model that Linux popularized. It made sense then but things have changed, and dependency injection is something CMake fails miserably at. We shouldn't have to do macro/function overrides, but I'm glad they exist in CMake. Current status quo is "it's really annoying and a huge headache to do, but at least CMake allows me to do it, unlike others". |
|
I think it's minimal work, as I would like to have all my libraries imported and linked anyway:
This looks tidy any more explicit, avoids transitive leakage and more.What is it that does not often work as you expect?