Skip to content

Commit 5fa916d

Browse files
erlingrjlhstrh
authored andcommitted
Reintroduce guard against linking to thread lib when using Zephyr
1 parent fac345c commit 5fa916d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ if(DEFINED _LF_CLOCK_SYNC_ON)
9191
endif()
9292
endif()
9393

94-
# Link with thread library
94+
# Link with thread library, unless we are on the Zephyr platform.
9595
if(NOT DEFINED LF_SINGLE_THREADED OR DEFINED LF_TRACE)
96-
find_package(Threads REQUIRED)
97-
target_link_libraries(reactor-c PUBLIC Threads::Threads)
96+
if (NOT PLATFORM_ZEPHYR)
97+
find_package(Threads REQUIRED)
98+
target_link_libraries(reactor-c PUBLIC Threads::Threads)
99+
endif()
98100
endif()
99101

100102
# Macro for translating a command-line argument into compile definition for

0 commit comments

Comments
 (0)