I am porting a Cmake project from Linux to Windows. It uses sockets, so uses pthread in Linux and needs Winsock in Windows. The project is being compiled in Linux, using cross-compilation to create Windows binaries. The project is already compiling fine, and there is a switch to link pthreads when building for Linux and winsock for Windows. However, there