🏁 Fix winsock and autotype error when compiling on Windows

This commit is contained in:
thez3ro 2016-10-24 19:45:35 +02:00
parent 7c4129033a
commit 24a17c05ab
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
4 changed files with 14 additions and 5 deletions

View file

@ -116,6 +116,7 @@ if(MINGW)
set(CMAKE_RC_COMPILER_INIT windres)
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
link_libraries(ws2_32 wsock32)
endif()
if(APPLE OR MINGW)
@ -201,7 +202,7 @@ if(UNIX)
endif()
endif()
include_directories(SYSTEM ${GCRYPT_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
include_directories(SYSTEM ${GCRYPT_INCLUDE_DIR} ${MHD_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
include(FeatureSummary)