blob: f8b233996eb220dcc501010f5f79253e8ae716f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
SET(HIREDISSRC async.c
dict.c
hiredis.c
net.c
read.c
sds.c)
SET(HIREDIS_CFLAGS "")
IF(ENABLE_FULL_DEBUG MATCHES "OFF")
IF("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET(HIREDIS_CFLAGS "${HIREDIS_CFLAGS} -O3")
ENDIF()
ENDIF()
ADD_LIBRARY(rspamd-hiredis STATIC ${HIREDISSRC})
SET_TARGET_PROPERTIES(rspamd-hiredis PROPERTIES COMPILE_FLAGS "${HIREDIS_CFLAGS}")
|