summaryrefslogtreecommitdiffstats
path: root/Tests/Framework/useExternal.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-18 18:44:44 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-21 16:50:54 (GMT)
commit9ab77201f772af9f8f0954722ed3a2414eb1d29c (patch)
tree6b3142e4c59ba1254c8ab28d2c633e52650bd649 /Tests/Framework/useExternal.c
parent05a59f37abd982b249f8cad648640c3394acc98a (diff)
downloadCMake-9ab77201f772af9f8f0954722ed3a2414eb1d29c.zip
CMake-9ab77201f772af9f8f0954722ed3a2414eb1d29c.tar.gz
CMake-9ab77201f772af9f8f0954722ed3a2414eb1d29c.tar.bz2
Apple: Fix linking to frameworks that do not exist until build time
Fixes: #21621
Diffstat (limited to 'Tests/Framework/useExternal.c')
-rw-r--r--Tests/Framework/useExternal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Framework/useExternal.c b/Tests/Framework/useExternal.c
new file mode 100644
index 0000000..8494b15
--- /dev/null
+++ b/Tests/Framework/useExternal.c
@@ -0,0 +1,6 @@
+extern int external(void);
+
+int main(void)
+{
+ return external();
+}