Skip to content

Commit

Permalink
cmake: use THREADS_PREFER_PTHREAD_FLAG
Browse files Browse the repository at this point in the history
  • Loading branch information
aberaud committed Dec 30, 2020
1 parent e6c760e commit df85abf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ option (OPENDHT_DOCUMENTATION "Create and install the HTML based API documentati
# Dependencies
list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
if (NOT MSVC)
set (THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package (Threads)
find_package (PkgConfig REQUIRED)
find_package (GnuTLS 3.3 REQUIRED)
Expand Down

0 comments on commit df85abf

Please sign in to comment.