Skip to content

Commit 6781d42

Browse files
committed
fix freebsd build by explicitly linking against pthreads
1 parent f2375e8 commit 6781d42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ target_include_directories(threadpool PUBLIC include)
99
target_include_directories(threadpool PRIVATE internal)
1010

1111
add_subdirectory(third_party)
12-
1312
target_link_libraries(threadpool PRIVATE threadpark)
1413

14+
find_package(Threads REQUIRED)
15+
target_link_libraries(threadpool PRIVATE Threads::Threads)
16+
1517
option(PI_THREADPOOL_BUILD_TESTS "Build tests" OFF)
1618

1719
enable_testing()

0 commit comments

Comments
 (0)