cmGeneratorTarget: Look up compatible interface properties directly
CMake checks compatible interface properties such as
POSITION_INDEPENDENT_CODE. For this, it must know whether the target
and each dependency set the property. To find out, it built a sorted
list of all property names of the target and searched that list. It
did this for the target and again for every dependency.
Look up the name in the property map of the target instead. The result
is the same. A property set to an empty value still counts as set. Add
a case for it to the RunCMake.CompatibleInterface DebugProperties test.
A warm re-run of a project with 500 libraries and 10000 sources uses
5.3% fewer instructions with Ninja and 4.6% fewer with Makefiles.
Issue: #28336
3 files changed