summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDietmar Scheidl <dietmar.scheidl@dynatrace.com>2022-01-18 07:35:31 +0100
committerMichael Grunder <michael.grunder@gmail.com>2022-01-24 12:12:19 -0800
commitf2e8010d95cbc220f8a05c597f5a81ed2339f71c (patch)
treeb0d627b9999e64a50e64cb9c0367f321ad727861 /CMakeLists.txt
parente73ab2f2329f33823cc89d1070dda8bfb1356bb0 (diff)
fix building on AIX and SunOS (#1031)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 122112b..fe6720b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,9 @@ IF(WIN32 OR MINGW)
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
TARGET_LINK_LIBRARIES(hiredis PUBLIC m)
TARGET_LINK_LIBRARIES(hiredis_static PUBLIC m)
+ELSEIF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
+ TARGET_LINK_LIBRARIES(hiredis PUBLIC socket)
+ TARGET_LINK_LIBRARIES(hiredis_static PUBLIC socket)
ENDIF()
TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)