Skip to content

Commit

Permalink
[eclipse-iceoryx#210] Make the discovery C example use shared libs
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jun 13, 2024
1 parent da9784b commit 4517a59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/c/discovery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<$<NOT:$<PLATFORM_ID:Darwin>>:iceoryx2-c::shared-lib>
$<$<PLATFORM_ID:Darwin>:iceoryx2-c::static-lib>
)

0 comments on commit 4517a59

Please sign in to comment.