Open WuTUT opened 4 weeks ago
Hi there, the support for generator expressions has evolved since before v3.0.
As far as I know, things like TARGET_PROPERTY
do not exist in version 3.0 and I'd like to keep this as widely available as possible.
Speed was never a concern.
I think there is a simple way to implement these functions
if use cmake generate expressions , each function will be only one line.
In addition, there is an important benefit: there is no need to recursively fetch the include directories introduced by target_link_library. For instance, if a library is linked publicly, its interface headers will also be visible. I test in my complicated project and it finds all include paths correctly.
The drawback may be the dependency on a higher version of CMake. However, I haven't tested whether this code works on cmake-version 3.0.