summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Import
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-05-09 18:50:41 (GMT)
committerBrad King <brad.king@kitware.com>2024-05-21 13:22:52 (GMT)
commitc16acd35b36245575744e3c31a581c62880481a5 (patch)
treef200c561fb54278d52447d5e52ce13c5bc53dcac /Tests/ExportImport/Import
parentb9ee79b8a13abb957a176ff0b5eab1e5d33efc50 (diff)
downloadCMake-c16acd35b36245575744e3c31a581c62880481a5.zip
CMake-c16acd35b36245575744e3c31a581c62880481a5.tar.gz
CMake-c16acd35b36245575744e3c31a581c62880481a5.tar.bz2
GenEx: Add support for custom transitive link properties
Teach the `$<TARGET_PROPERTY:...>` generator expression to check for a new `TRANSITIVE_LINK_PROPERTIES` property in the target's link closure to enable transitive evaluation of named properties through the link closure, including entries guarded by `$<LINK_ONLY:...>`. Fixes: #20416
Diffstat (limited to 'Tests/ExportImport/Import')
-rw-r--r--Tests/ExportImport/Import/A/imp_testLib10.c4
-rw-r--r--Tests/ExportImport/Import/A/imp_testLib11.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/Tests/ExportImport/Import/A/imp_testLib10.c b/Tests/ExportImport/Import/A/imp_testLib10.c
index bac772c..5d6e823 100644
--- a/Tests/ExportImport/Import/A/imp_testLib10.c
+++ b/Tests/ExportImport/Import/A/imp_testLib10.c
@@ -2,6 +2,10 @@
# error "TESTLIB10_INTERFACE_CUSTOM_C incorrectly not defined!"
#endif
+#ifndef TESTLIB10_INTERFACE_CUSTOM_L
+# error "TESTLIB10_INTERFACE_CUSTOM_L incorrectly not defined!"
+#endif
+
int testLib10(void);
int main(void)
diff --git a/Tests/ExportImport/Import/A/imp_testLib11.c b/Tests/ExportImport/Import/A/imp_testLib11.c
index a17d7e7..e8e10e6 100644
--- a/Tests/ExportImport/Import/A/imp_testLib11.c
+++ b/Tests/ExportImport/Import/A/imp_testLib11.c
@@ -10,6 +10,18 @@
# error "TESTLIB11_INTERFACE_CUSTOM_D incorrectly not defined!"
#endif
+#ifndef TESTLIB10_INTERFACE_CUSTOM_L
+# error "TESTLIB10_INTERFACE_CUSTOM_L incorrectly not defined!"
+#endif
+
+#ifndef TESTLIB11_INTERFACE_CUSTOM_L
+# error "TESTLIB11_INTERFACE_CUSTOM_L incorrectly not defined!"
+#endif
+
+#ifndef TESTLIB11_INTERFACE_CUSTOM_M
+# error "TESTLIB11_INTERFACE_CUSTOM_M incorrectly not defined!"
+#endif
+
int testLib11(void);
int main(void)