add sun link libs

pull/434/head
Rick V 5 years ago
parent 2e1b2ff8b1
commit abb9284167
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465

@ -38,6 +38,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
# this, the header check is the only method we have to distinguish
# them. -rick the svr4 guy
set(SOLARIS ON)
set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lsocket -lnsl")
add_definitions(-D_POSIX_PTHREAD_SEMANTICS)
INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES(sys/epoll.h SOLARIS_HAVE_EPOLL)
if (SOLARIS_HAVE_EPOLL)

@ -16,11 +16,11 @@ option(gtest_build_tests "Build all of gtest's own tests." OFF)
option(gtest_build_samples "Build gtest's sample programs." OFF)
if (WIN32)
if (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
option(gtest_disable_pthreads "Disable uses of pthreads in gtest." ON)
else (NOT WIN32)
else ()
option(gtest_disable_pthreads "Disable uses of pthreads in gtest." OFF)
endif(WIN32)
endif()
option(
gtest_hide_internal_symbols

Loading…
Cancel
Save