Browse Source

libarchive: Drop use of pthread.h for CMake build

CMake does not use threads so we do not need this in our libarchive.
Brad King 10 years ago
parent
commit
2f940f8995
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Utilities/cmlibarchive/CMakeLists.txt

+ 2 - 0
Utilities/cmlibarchive/CMakeLists.txt

@@ -94,6 +94,8 @@ IF(WIN32)
   SET(_WIN32_WINNT ${WINVER})
 ENDIF(WIN32)
 
+set(HAVE_PTHREAD_H 0) # no threads in CMake
+
 IF("${CMAKE_C_PLATFORM_ID}" MATCHES "^(HP-UX)$")
   ADD_DEFINITIONS(-D_XOPEN_SOURCE=500) # Ask wchar.h for mbstate_t
 ENDIF()