cmake: clean up EXTRA_LIBRARIES
pthread is handled by CMAKE_THREAD_LIBS_INIT while libdl isn't needed.
This commit is contained in:
parent
3b7bdcb790
commit
9689df925c
|
@ -222,13 +222,11 @@ endif()
|
|||
|
||||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
||||
if(MINGW)
|
||||
set(EXTRA_LIBRARIES pthread;mswsock;ws2_32)
|
||||
set(EXTRA_LIBRARIES mswsock;ws2_32;iphlpapi)
|
||||
elseif(APPLE OR FREEBSD)
|
||||
set(EXTRA_LIBRARIES "")
|
||||
elseif(NOT MSVC)
|
||||
find_library(RT rt)
|
||||
find_library(PTHREAD pthread)
|
||||
find_library(DL dl)
|
||||
set(EXTRA_LIBRARIES ${RT} ${PTHREAD} ${DL})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue