1

In CMake I want to get all property names that are set for a target.

In How to print all the properties of a target in cmake? they use cmake --help-property-list to list a predefined set. But if you have a target that defines other properties how can I know which are they? For example

set_target_properties(some_target PROPERTIES some_custom_property prop_val)

How can I get all such properties? I am looking for something like

get_target_property_names(some_target property_names)
Sogartar
  • 1,915
  • 2
  • 18
  • 31

0 Answers0