cmake/solaris: fix building (link with socket,nsl)

This commit is contained in:
Azat Khuzhin 2016-08-10 00:16:48 +03:00
parent 00514a2a1e
commit 050bfc7fc6

View File

@ -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})