From 897fec3a890515f2766b9e6735222dbba9ae9f41 Mon Sep 17 00:00:00 2001 From: Arokux B Date: Thu, 28 Feb 2013 09:25:02 +0800 Subject: [PATCH] cmake mingw no need for websock w32 2. Comment out this line http://git.warmcat.com/cgi-bin/cgit/libwebsockets/tree/CMakeLists.txt#n279 the file websock-w32.c is already compiled indirectly from libwebsockets.c Signed-off-by: Arokux B --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e406838..2d5f9626 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,12 +274,16 @@ if (WIN32) ${WIN32_HELPERS_PATH}/websock-w32.h ${WIN32_HELPERS_PATH}/gettimeofday.h ) - +if (MINGW) + list(APPEND SOURCES + ${WIN32_HELPERS_PATH}/gettimeofday.c + ) +else() list(APPEND SOURCES ${WIN32_HELPERS_PATH}/websock-w32.c ${WIN32_HELPERS_PATH}/gettimeofday.c ) - +endif() include_directories(${WIN32_HELPERS_PATH}) else() # Unix.