Skip to content

Commit

Permalink
Use cmake variable CMAKE_DL_LIBS instead of find_package command.
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Oct 22, 2020
1 parent 7a7c5ad commit 1911b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -226,9 +226,9 @@ IF(UNIX)
SEARCH_LIBRARY(LIBSOCKET setsockopt socket)
FIND_PACKAGE(Threads)
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${LIBNSL} ${LIBBIND} ${LIBICONV} ${LIBZ}
${LIBSOCKET} ${LIBDL} ${LIBM} ${LIBPTHREAD})
${LIBSOCKET} ${CMAKE_DL_LIBS} ${LIBM} ${LIBPTHREAD})
SET(SYSTEM_LIBS ${SYSTEM_LIBS} ${LIBNSL} ${LIBBIND} ${LIBICONV} ${LIBZ}
${LIBSOCKET} ${LIBDL} ${LIBM} ${LIBPTHREAD})
${LIBSOCKET} ${CMAKE_DL_LIBS} ${LIBM} ${LIBPTHREAD})
#remove possible dups from required libraries
LIST(LENGTH CMAKE_REQUIRED_LIBRARIES rllength)
IF(${rllength} GREATER 0)
Expand Down

0 comments on commit 1911b9d

Please sign in to comment.