From: Azat Khuzhin Date: Sun, 5 Mar 2017 19:07:23 +0000 (+0300) Subject: cmake: add into CMAKE_REQUIRED_INCLUDES for sizeof(pthread_t) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2b4b4d74e78a3e4fe7a74224d1e6aada5bde351;p=libevent cmake: add into CMAKE_REQUIRED_INCLUDES for sizeof(pthread_t) Fixes: #475 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ae6178b1..343bf5f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -471,6 +471,7 @@ else() endif() if (NOT EVENT__DISABLE_THREAD_SUPPORT) + list(APPEND CMAKE_EXTRA_INCLUDE_FILES pthread.h) CHECK_TYPE_SIZE(pthread_t EVENT__SIZEOF_PTHREAD_T) endif()