commit | d09fb10060b98523d45e754ca8a812a401202ed1 | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Fri May 12 22:20:40 2017 -0700 |
committer | Vitaly Buka <vitalybuka@gmail.com> | Fri May 12 22:30:28 2017 -0700 |
tree | 05f1a2404665f9992a223f9edc9c752d3bde95bc | |
parent | d8ad965089cb478f732ce13dfc8b7ebbc59024bb [diff] [blame] |
Check CMAKE_USE_PTHREADS_INIT for pthread presence.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 31733bf..9c6beae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -96,7 +96,7 @@ set(PROTOBUF_CFLAGS "${CMAKE_C_FLAGS} ${NO_FUZZING_FLAGS} -w") set(PROTOBUF_CXXFLAGS "${CMAKE_CXX_FLAGS} ${NO_FUZZING_FLAGS} -w") -if(THREADS_HAVE_PTHREAD_ARG) +if(CMAKE_USE_PTHREADS_INIT) set(PROTOBUF_CFLAGS "${PROTOBUF_CFLAGS} -pthread") set(PROTOBUF_CXXFLAGS "${PROTOBUF_CXXFLAGS} -pthread") endif()