summaryrefslogtreecommitdiffstats
path: root/contrib/hiredis/CMakeLists.txt
blob: 992fe6c92a13b6b6c1ad679e3a74c85156b68bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Hiredis compilation target

SET(LIBHIREDISSRC async.c
                  dict.c
                  hiredis.c
                  net.c
                  sds.c)

ADD_LIBRARY(hiredis STATIC ${LIBHIREDISSRC})
IF(CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(hiredis PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing")
ENDIF(CMAKE_COMPILER_IS_GNUCC)

TARGET_LINK_LIBRARIES(hiredis ${CMAKE_REQUIRED_LIBRARIES})