From 4517a59a0902470240b3f6cde38e317c8b4ae560 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 13 Jun 2024 20:41:18 +0200 Subject: [PATCH] [#210] Make the discovery C example use shared libs --- examples/c/discovery/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/c/discovery/CMakeLists.txt b/examples/c/discovery/CMakeLists.txt index e0e9da1e3..99010f44c 100644 --- a/examples/c/discovery/CMakeLists.txt +++ b/examples/c/discovery/CMakeLists.txt @@ -17,4 +17,9 @@ find_package(iceoryx2-c REQUIRED) add_executable(example_c_discovery src/main.c) -target_link_libraries(example_c_discovery iceoryx2-c::static-lib) +# NOTE we use this example to test the builds for the shared library but this build +# is partially broken on macOS; see also #233 +target_link_libraries(example_c_discovery + $<$>:iceoryx2-c::shared-lib> + $<$:iceoryx2-c::static-lib> +)