File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,20 @@ endif ()
115
115
# External dependencies
116
116
#-----------------------------------------------------------------------------
117
117
if (ZSTD_MULTITHREAD_SUPPORT AND UNIX )
118
- set (THREADS_PREFER_PTHREAD_FLAG ON )
119
- find_package (Threads REQUIRED)
120
- if (CMAKE_USE_PTHREADS_INIT)
118
+ if (CMAKE_SYSTEM_NAME MATCHES "HP-UX" )
119
+ find_package (Threads)
120
+ if (NOT Threads_FOUND)
121
+ set (CMAKE_USE_PTHREADS_INIT 1)
122
+ set (CMAKE_THREAD_LIBS_INIT -lpthread)
123
+ set (CMAKE_HAVE_THREADS_LIBRARY 1)
124
+ set (Threads_FOUND TRUE )
125
+ endif ()
126
+ else ()
127
+ set (THREADS_PREFER_PTHREAD_FLAG ON )
128
+ find_package (Threads REQUIRED)
129
+ endif ()
130
+
131
+ if (CMAKE_USE_PTHREADS_INIT)
121
132
set (THREADS_LIBS "${CMAKE_THREAD_LIBS_INIT} " )
122
133
else ()
123
134
message (SEND_ERROR "ZSTD currently does not support thread libraries other than pthreads" )
You can’t perform that action at this time.
0 commit comments