Skip to content

Commit c1df86b

Browse files
[arccore,concurrency] Add target 'Threads::Threads' to target 'arccore_concurrency'.
This is needed to make sure libraries needed for threads are linked.
1 parent ecbbd3e commit c1df86b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arccore/src/concurrency/arccore/concurrency/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ endif()
3737

3838
target_link_libraries(arccore_concurrency PUBLIC arccore_base)
3939

40+
find_package(Threads)
41+
if (TARGET Threads::Threads)
42+
target_link_libraries(arccore_concurrency PRIVATE Threads::Threads)
43+
endif()
44+
4045
# ----------------------------------------------------------------------------
4146
# Local Variables:
4247
# tab-width: 2

0 commit comments

Comments
 (0)