commit bbd6b71738c5a2d899323bd7f6e61f811f0e0674 Author: Holger Hetterich Date: Wed Jul 20 22:57:53 2011 +0200 Add a test for SunOS, and then build with the socket and nsl library there. diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a49d2a..b1abfa6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,16 @@ SET(CMAKE_BUILD_TYPE "Debug") SET(CMAKE_C_FLAGS_DEBUG "-g -Wall") #SET(CMAKE_VERBOSE_MAKEFILE ON) +# compile on SunOS +if (CMAKE_SYSTEM_NAME STREQUAL "SunOS" ) + ADD_DEFINITIONS(-DSOLARIS) + SET(Libraries + ${Libraries} + socket + nsl) +endif() + + # # check for libdbi # @@ -143,7 +153,7 @@ SET(CurrentExe "smbtatorturesrv") ADD_EXECUTABLE(${CurrentExe} src/torture/srv/smbtatorturesrv.c ) -TARGET_LINK_LIBRARIES(${CurrentExe}) +TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) SET(CurrentExe "rrddriver") ADD_EXECUTABLE(${CurrentExe}