fix #2 for pthread/dl

This commit is contained in:
erwincoumans 2018-02-02 19:38:39 -08:00
parent 64a505ec19
commit f119cff516
2 changed files with 5 additions and 1 deletions

View File

@ -120,6 +120,10 @@ ELSE(WIN32)
IF(BUILD_CLSOCKET)
ADD_DEFINITIONS(${OSDEF})
ENDIF(BUILD_CLSOCKET)
IF(NOT APPLE)
TARGET_LINK_LIBRARIES( pthread ${DL} )
ENDIF(APPLE)
ENDIF(WIN32)
IF(BUILD_ENET)

View File

@ -112,7 +112,7 @@ IF(WIN32)
ELSE()
IF(APPLE)
ELSE(APPLE)
LINK_LIBRARIES( pthread ${DL} )
TARGET_LINK_LIBRARIES( pthread ${DL} )
ENDIF(APPLE)
ENDIF(WIN32)