3 ms·
This doesn't work all the time. The problem is that there's a difference with how targets are built up vs. how find_package() specifies you should detect system
by junon 6y ago
This doesn't work all the time. The problem is that there's a difference with how targets are built up vs. how find_package() specifies you should detect system deps, and they're inherently incompatible with each other.
- wheybags 6y agoThis is talking about internal dependencies though, not system ones. That said, my strategy for system deps is to just not use them and vendor everything I can, rewriting their build system in cmake if I have to.
- junon 6y agoYes, exactly. It doesn't always work like you'd expect. Custom find modules can use custom variables and thus you have to define them manually in every case. This macro gets you half the way there, at least.