mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
cmake/solaris: fix building (link with socket,nsl)
This commit is contained in:
parent
00514a2a1e
commit
050bfc7fc6
@ -36,6 +36,7 @@ set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Limited configuratio
|
||||
project(libevent C)
|
||||
|
||||
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
|
||||
string(REGEX MATCH "SunOS" SOLARIS "${CMAKE_SYSTEM_NAME}")
|
||||
|
||||
|
||||
include(CheckTypeSize)
|
||||
@ -747,6 +748,10 @@ if (UNIX)
|
||||
list(APPEND LIB_PLATFORM m)
|
||||
endif()
|
||||
|
||||
if (SOLARIS)
|
||||
list(APPEND LIB_PLATFORM socket nsl)
|
||||
endif()
|
||||
|
||||
source_group("Headers Private" FILES ${HDR_PRIVATE})
|
||||
source_group("Header Compat" FILES ${HDR_COMPAT})
|
||||
source_group("Headers Public" FILES ${HDR_PUBLIC})
|
||||
|
Loading…
x
Reference in New Issue
Block a user