Files
CMake/Tests/CustomTransitiveProperties/object1.c
Brad King b9ee79b8a1 GenEx: Add support for custom transitive compile properties
Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a
new `TRANSITIVE_COMPILE_PROPERTIES` property in the target's link
closure to enable transitive evaluation of named properties through
the link closure, excluding entries guarded by `$<LINK_ONLY:...>`.

Issue: #20416
2024-05-21 09:22:51 -04:00

37 lines
777 B
C

#ifndef CUSTOM_A_IFACE1
# error "CUSTOM_A_IFACE1 incorrectly not defined"
#endif
#ifndef CUSTOM_A_IFACE2
# error "CUSTOM_A_IFACE2 incorrectly not defined"
#endif
#ifndef CUSTOM_A_OBJECT1
# error "CUSTOM_A_OBJECT1 incorrectly not defined"
#endif
#ifndef CUSTOM_A_TARGET_NAME_OBJECT1
# error "CUSTOM_A_TARGET_NAME_OBJECT1 incorrectly not defined"
#endif
#ifndef CUSTOM_A_TARGET_TYPE_OBJECT_LIBRARY
# error "CUSTOM_A_TARGET_TYPE_OBJECT_LIBRARY incorrectly not defined"
#endif
#ifndef CUSTOM_C_IFACE1
# error "CUSTOM_C_IFACE1 incorrectly not defined"
#endif
#ifndef CUSTOM_C_OBJECT1
# error "CUSTOM_C_OBJECT1 incorrectly not defined"
#endif
#ifdef CUSTOM_C_OBJECT1_IFACE
# error "CUSTOM_C_OBJECT1_IFACE incorrectly defined"
#endif
int object1(void)
{
return 0;
}