I have a library that uses another third-party cmake subproject, which has library target X. In newer cmake versions (3.16+) I’m able to use $<TARGET_OBJECTS:X> in order to make third party library an embedded part of my lib. The third-party library has no OBJECT targets and my approach seems to work fine, but fails on cmake 3.12. What version I can assume this to work on or what approach should I use for such use-cases?
See differences between:
- https://cmake.org/cmake/help/v3.14/manual/cmake-generator-expressions.7.html
- https://cmake.org/cmake/help/v3.15/manual/cmake-generator-expressions.7.html
So it seems the requirements have been relaxed in 3.15.
1 Like
Oh, thanks, didn’t think to look for requirements in generator expressions specifically. Looks like I should drop older cmake versions then.