summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-26 13:07:18 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-28 12:44:47 (GMT)
commit2f940f89951027bc596edbe1a5768cc0a0ef78a0 (patch)
treeb85c622ecceb50996fb44d4c13397a5d2cc5ad55
parent1e4738173053450c370f6d558fff6c08e5b084f5 (diff)
downloadCMake-2f940f89951027bc596edbe1a5768cc0a0ef78a0.zip
CMake-2f940f89951027bc596edbe1a5768cc0a0ef78a0.tar.gz
CMake-2f940f89951027bc596edbe1a5768cc0a0ef78a0.tar.bz2
libarchive: Drop use of pthread.h for CMake build
CMake does not use threads so we do not need this in our libarchive.
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index 6b13c2f..00550e2 100644
--- a/Utilities/cmlibarchive/CMakeLists.txt
+++ b/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()