Browse Source

Revert "correct wrong pthread lib switch logic (#755)" (#756)

This reverts commit 8e3fa33863.
pull/759/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
b0de090de4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      CMakeLists.txt

13
CMakeLists.txt

@ -40,18 +40,17 @@ add_definitions(-DN2N_VERSION="${N2N_VERSION}" -DN2N_OSNAME="${N2N_OSNAME}")
OPTION(BUILD_SHARED_LIBS "BUILD Shared Library" OFF)
# N2n specific params
OPTION(N2N_OPTION_USE_PTHREAD "USE PTHREAD Library" ON)
OPTION(N2N_OPTION_USE_PTHREAD "USE PTHREAD Library" OFF)
OPTION(N2N_OPTION_USE_OPENSSL "USE OPENSSL Library" OFF)
OPTION(N2N_OPTION_USE_PCAPLIB "USE PCAP Library" OFF)
OPTION(N2N_OPTION_USE_ZSTD "USE ZSTD Library" OFF)
if(N2N_OPTION_USE_PTHREAD)
find_library(PTHREAD_LIB pthread)
if(PTHREAD_LIB)
ADD_DEFINITIONS("-DHAVE_PTHREAD")
endif(PTHREAD_LIB)
endif(N2N_OPTION_USE_PTHREAD)
find_library(PTHREAD_LIB pthread)
if(PTHREAD_LIB)
set(N2N_OPTION_USE_PTHREAD ON)
ADD_DEFINITIONS("-DHAVE_PTHREAD")
endif(PTHREAD_LIB)
if(NOT DEFINED N2N_OPTION_USE_OPENSSL)
set(N2N_OPTION_USE_OPENSSL OFF)

Loading…
Cancel
Save