aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--utils/CMakeLists.txt14
2 files changed, 9 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1cbac099..887bc93f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,6 +63,7 @@ OPTION(ENABLE_GD "Enable libgd for images processing [default: ON]" ON
OPTION(ENABLE_JEMALLOC "Build rspamd with jemalloc allocator [default: OFF]" OFF)
OPTION(ENABLE_COVERAGE "Build rspamd with code coverage options [default: OFF]" OFF)
OPTION(ENABLE_FULL_DEBUG "Build rspamd with all possible debug [default: OFF]" OFF)
+OPTION(ENABLE_UTILS "Build rspamd internal utils [default: OFF]" OFF)
INCLUDE(FindArch.cmake)
TARGET_ARCHITECTURE(ARCH)
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
index 81430d1e7..8bc0ff604 100644
--- a/utils/CMakeLists.txt
+++ b/utils/CMakeLists.txt
@@ -22,12 +22,14 @@ MACRO(ADD_UTIL NAME)
TARGET_LINK_LIBRARIES("${NAME}" ${RSPAMD_REQUIRED_LIBRARIES})
ENDMACRO()
-ADD_UTIL(rspamd-http-server ${UTILSERVERSRC})
-ADD_UTIL(rspamd-http-bench ${UTILBENCHSRC})
-ADD_UTIL(rspamd-received-bench ${RECVBENCHSRC})
-ADD_UTIL(rspamd-ctype-bench ${CTYPEBENCHSRC})
-ADD_UTIL(rspamd-base64 ${BASE64SRC})
-ADD_UTIL(rspamd-mime-tool ${MIMESRC})
+IF (ENABLE_UTILS MATCHES "ON")
+ ADD_UTIL(rspamd-http-server ${UTILSERVERSRC})
+ ADD_UTIL(rspamd-http-bench ${UTILBENCHSRC})
+ ADD_UTIL(rspamd-received-bench ${RECVBENCHSRC})
+ ADD_UTIL(rspamd-ctype-bench ${CTYPEBENCHSRC})
+ ADD_UTIL(rspamd-base64 ${BASE64SRC})
+ ADD_UTIL(rspamd-mime-tool ${MIMESRC})
+ENDIF()
# Redirector
IF (ENABLE_REDIRECTOR MATCHES "ON")