Cmake cannot build libxml2 without threads support on MSYS
I am trying to get simplest build of libxml2 on MSYS2 (gcc compiler on Windows).
I have disabled support for threads (LIBXML2_WITH_THREADS
option switched off).
But compiler cannot process threads.c
, because part of it depends on LIBXML2_WITH_THREADS
(which is disabled) and part depends on HAVE_PTHREAD_H
(which is automatically enabled by CMake script for this platform).
Looks like this bug can be reproduced on every platform, that have pthread.h
.