|
|
@ -4,10 +4,12 @@ set(BACKENDS "") |
|
|
|
add_library("f2b_backend_exec" MODULE "exec.c") |
|
|
|
add_library("f2b_backend_exec" MODULE "exec.c") |
|
|
|
list(APPEND BACKENDS "f2b_backend_exec") |
|
|
|
list(APPEND BACKENDS "f2b_backend_exec") |
|
|
|
|
|
|
|
|
|
|
|
# TODO: check if library available |
|
|
|
find_library(REDIS_FOUND "pcre") |
|
|
|
|
|
|
|
if (WITH_REDIS AND REDIS_FOUND) |
|
|
|
add_library("f2b_backend_redis" MODULE "redis.c") |
|
|
|
add_library("f2b_backend_redis" MODULE "redis.c") |
|
|
|
target_link_libraries("f2b_backend_redis" "hiredis") |
|
|
|
target_link_libraries("f2b_backend_redis" "hiredis") |
|
|
|
list(APPEND BACKENDS "f2b_backend_redis") |
|
|
|
list(APPEND BACKENDS "f2b_backend_redis") |
|
|
|
|
|
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
message(STATUS "- Backends : ${BACKENDS}") |
|
|
|
message(STATUS "- Backends : ${BACKENDS}") |
|
|
|
|
|
|
|
|
|
|
|