aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/hiredis/CMakeLists.txt
blob: c8896868c2a6a45780d60b690197bd8570ad09df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SET(HIREDISSRC	async.c
				dict.c
				hiredis.c
				net.c
				read.c
				sds.c)

SET(HIREDIS_CFLAGS "")
IF("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
	SET(HIREDIS_CFLAGS "${HIREDIS_CFLAGS} -O3")
ENDIF()

ADD_LIBRARY(rspamd-hiredis STATIC "${HIREDISSRC}")

SET_TARGET_PROPERTIES(rspamd-hiredis PROPERTIES COMPILE_FLAGS "${HIREDIS_CFLAGS}")