cmake: clean up EXTRA_LIBRARIES

pthread is handled by CMAKE_THREAD_LIBS_INIT while libdl isn't needed.
This commit is contained in:
Ben Boeckel 2014-10-23 14:04:08 -04:00
parent 3b7bdcb790
commit 9689df925c
1 changed files with 1 additions and 3 deletions

View File

@ -222,13 +222,11 @@ endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW) if(MINGW)
set(EXTRA_LIBRARIES pthread;mswsock;ws2_32) set(EXTRA_LIBRARIES mswsock;ws2_32;iphlpapi)
elseif(APPLE OR FREEBSD) elseif(APPLE OR FREEBSD)
set(EXTRA_LIBRARIES "") set(EXTRA_LIBRARIES "")
elseif(NOT MSVC) elseif(NOT MSVC)
find_library(RT rt) find_library(RT rt)
find_library(PTHREAD pthread)
find_library(DL dl)
set(EXTRA_LIBRARIES ${RT} ${PTHREAD} ${DL}) set(EXTRA_LIBRARIES ${RT} ${PTHREAD} ${DL})
endif() endif()