I'm using Cmake to build Cgreen on MSVC 2010 (express). I needed the attached patch to be able to build on Windows, since SIGPIPE doesn't exist on this platform. I'm using revision 553 (trunk) of Cgreen from the standard SVN repo.
I'm sure there's a much cleaner way to do this, but I've just used 'ifndef WIN32' to avoid SIGPIPE on this platform.