Browse Source

Fix bug in CMake conditional (Fixes #939) (#940)

pull/942/head
Hamish Coleman 3 years ago
committed by GitHub
parent
commit
3856d62e8f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CMakeLists.txt

2
CMakeLists.txt

@ -49,7 +49,7 @@ if(N2N_OPTION_USE_PTHREAD)
find_library(PTHREAD_LIB pthread)
if(NOT PTHREAD_LIB)
MESSAGE(FATAL_ERROR "libpthread not found.")
endif(PTHREAD_LIB)
endif(NOT PTHREAD_LIB)
MESSAGE(INFO "Using libpthread.")
ADD_DEFINITIONS("-DHAVE_PTHREAD")
target_link_libraries(n2n pthread)

Loading…
Cancel
Save