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 <arokux@gmail.com>
${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.