diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-03-05 13:36:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-06 14:15:48 (GMT) |
commit | ce1bdec3a4f5fb10a1bd6df3ab0ca469c2f8a22d (patch) | |
tree | 01eded251c32a1bf2b6cf07eb92a767207046a5a /Tests | |
parent | 20e3884e9e71d7a9ffcd827d5ae813ed3437f024 (diff) | |
download | CMake-ce1bdec3a4f5fb10a1bd6df3ab0ca469c2f8a22d.zip CMake-ce1bdec3a4f5fb10a1bd6df3ab0ca469c2f8a22d.tar.gz CMake-ce1bdec3a4f5fb10a1bd6df3ab0ca469c2f8a22d.tar.bz2 |
Xcode: Fix missing Frameworks search paths
Fixes: #24541
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/Framework/FrameworkConsumption.cmake | 10 | ||||
-rw-r--r-- | Tests/RunCMake/Framework/consumer.c | 9 |
2 files changed, 16 insertions, 3 deletions
diff --git a/Tests/RunCMake/Framework/FrameworkConsumption.cmake b/Tests/RunCMake/Framework/FrameworkConsumption.cmake index a1ce006..2180cf9 100644 --- a/Tests/RunCMake/Framework/FrameworkConsumption.cmake +++ b/Tests/RunCMake/Framework/FrameworkConsumption.cmake @@ -22,10 +22,14 @@ set_target_properties(Gui2 PROPERTIES ) add_executable(app2 main2.c) -set_target_properties(Gui2 PROPERTIES - PUBLIC_HEADER "${input_header}" - FRAMEWORK TRUE +set_target_properties(app2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY bin ) target_link_libraries(app2 PRIVATE Gui2) + + +# Same test with STATIC consumer +add_library(Consumer STATIC consumer.c) + +target_link_libraries(Consumer PRIVATE Gui2) diff --git a/Tests/RunCMake/Framework/consumer.c b/Tests/RunCMake/Framework/consumer.c new file mode 100644 index 0000000..a578976 --- /dev/null +++ b/Tests/RunCMake/Framework/consumer.c @@ -0,0 +1,9 @@ + +#include <Gui2/Gui.h> + +int consumer() +{ + foo(); + + return 0; +} |