diff options
author | Brad King <brad.king@kitware.com> | 2020-12-18 18:44:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-21 16:50:54 (GMT) |
commit | 9ab77201f772af9f8f0954722ed3a2414eb1d29c (patch) | |
tree | 6b3142e4c59ba1254c8ab28d2c633e52650bd649 /Tests/Framework/External | |
parent | 05a59f37abd982b249f8cad648640c3394acc98a (diff) | |
download | CMake-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/External')
-rw-r--r-- | Tests/Framework/External/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/Framework/External/external.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/Framework/External/CMakeLists.txt b/Tests/Framework/External/CMakeLists.txt new file mode 100644 index 0000000..b9128fd --- /dev/null +++ b/Tests/Framework/External/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.19) +project(ExternalFramework C) +add_library(External SHARED external.c) +set_property(TARGET External PROPERTY FRAMEWORK 1) +install(TARGETS External DESTINATION lib) diff --git a/Tests/Framework/External/external.c b/Tests/Framework/External/external.c new file mode 100644 index 0000000..8441e71 --- /dev/null +++ b/Tests/Framework/External/external.c @@ -0,0 +1,4 @@ +int external(void) +{ + return 0; +} |