cmake mingw no need for websock w32
authorArokux B <arokux@gmail.com>
Thu, 28 Feb 2013 01:25:02 +0000 (09:25 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 28 Feb 2013 01:25:02 +0000 (09:25 +0800)
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>
CMakeLists.txt

index 4e40683..2d5f962 100644 (file)
@@ -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.