Skip to content

Commit

Permalink
Merge pull request #146 from jschueller/thread
Browse files Browse the repository at this point in the history
CMake: fix undefined reference to pthread_create
  • Loading branch information
kimwalisch authored Feb 20, 2024
2 parents 29ed467 + 0d29d34 commit 78489db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ if(BUILD_PRIMESIEVE)
if(TARGET libprimesieve-static)
add_dependencies(primesieve libprimesieve-static)
endif()

target_link_libraries(primesieve Threads::Threads)
endif()

# Install headers ####################################################
Expand Down

0 comments on commit 78489db

Please sign in to comment.