C:\code\libevent\build>cmake -G "Visual Studio 15 2017" .. -- The C compiler identification is MSVC 19.16.27032.1 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found Git: C:/Program Files/Git/cmd/git.exe -- Looking for __GNU_LIBRARY__ -- Looking for __GNU_LIBRARY__ - not found -- Looking for _GNU_SOURCE -- Looking for _GNU_SOURCE - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/socket.h -- Looking for sys/socket.h - not found -- Looking for netinet/in.h -- Looking for netinet/in.h - not found -- Looking for sys/un.h -- Looking for sys/un.h - not found -- Looking for afunix.h -- Looking for afunix.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of struct sockaddr_un -- Check size of struct sockaddr_un - done -- Looking for netinet/in6.h -- Looking for netinet/in6.h - not found -- Looking for unistd.h -- Looking for unistd.h - not found -- Looking for netdb.h -- Looking for netdb.h - not found -- Looking for dlfcn.h -- Looking for dlfcn.h - not found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - not found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for poll.h -- Looking for poll.h - not found -- Looking for port.h -- Looking for port.h - not found -- Looking for signal.h -- Looking for signal.h - found -- Looking for stdarg.h -- Looking for stdarg.h - found -- Looking for stddef.h CMake Error: Unable to open check cache file for write. C:/code/libevent/build/CMakeFiles/CMakeTmp/CMakeFiles/cmake.check_cache CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CheckIncludeFile.cmake:93 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): CMakeLists.txt:407 (CHECK_INCLUDE_FILE) -- Configuring incomplete, errors occurred! See also "C:/code/libevent/build/CMakeFiles/CMakeOutput.log". See also "C:/code/libevent/build/CMakeFiles/CMakeError.log".