From: James Turner Date: Wed, 7 Sep 2011 19:41:55 +0000 (+0100) Subject: Further Windows Cmake tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b0015ab6e83348cbe26eec1d81400ff2da52a4a4;p=simgear.git Further Windows Cmake tweaks. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b79026c7..a82b0081 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,6 +164,7 @@ if(WIN32) set(HAVE_GETLOCALTIME 1) set( WINSOCK_LIBRARY "ws2_32.lib" ) + set( RT_LIBRARY "winmm" ) endif(WIN32) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS} ${MSVC_FLAGS}") diff --git a/simgear/io/httpget.cxx b/simgear/io/httpget.cxx index b65a9274..e10a29b4 100644 --- a/simgear/io/httpget.cxx +++ b/simgear/io/httpget.cxx @@ -133,7 +133,9 @@ int main(int argc, char* argv[]) cl.setProxy(proxyHost, proxyPort, proxyAuth); } +#ifndef WIN32 signal(SIGPIPE, SIG_IGN); +#endif if (!outFile) { outFile = new SGFile(fileno(stdout));