mingw library tweaks

This commit is contained in:
Riccardo Spagni 2014-10-06 22:34:44 +02:00
parent 2cf94c1321
commit 26728d94fe
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 4 deletions

View File

@ -213,10 +213,7 @@ endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW) if(MINGW)
find_library(PTHREAD pthread) set(EXTRA_LIBRARIES pthread;mswsock;ws2_32)
find_library(MSWSOCK mswsock)
find_library(WS2_32 ws2_32)
set(EXTRA_LIBRARIES ${PTHREAD} ${MSWSOCK} ${WS2_32})
elseif(APPLE OR FREEBSD) elseif(APPLE OR FREEBSD)
set(EXTRA_LIBRARIES "") set(EXTRA_LIBRARIES "")
elseif(NOT MSVC) elseif(NOT MSVC)