mirror of
https://github.com/rspamd/rspamd.git
synced 2024-08-19 02:10:31 +02:00
18 lines
424 B
CMake
18 lines
424 B
CMake
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}") |