summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-13 06:03:17 +0000
committerAdam <Adam@anope.org>2013-04-13 06:05:17 +0000
commit81483ae5e7e8032f7f4899f4b24b32b750d68ff3 (patch)
tree0cb0bb8b14b01e999676235fbf5ee75b9e41b4e7 /src
parent003140bf60c395a30878495e003033a574568c05 (diff)
Fix build on Solaris
Diffstat (limited to 'src')
-rw-r--r--src/tools/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
index 962849d8b..88e03f615 100644
--- a/src/tools/CMakeLists.txt
+++ b/src/tools/CMakeLists.txt
@@ -24,6 +24,9 @@ foreach(SRC ${TOOLS_SRCS})
if(WIN32 AND ${EXE} STREQUAL anopesmtp)
target_link_libraries(${EXE} wsock32)
endif(WIN32 AND ${EXE} STREQUAL anopesmtp)
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" AND ${EXE} STREQUAL anopesmtp)
+ target_link_libraries(${EXE} socket nsl)
+ endif(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" AND ${EXE} STREQUAL anopesmtp)
# Set the executable to be installed to the bin directory under the main directory
install(TARGETS ${EXE}
DESTINATION ${BIN_DIR}