summaryrefslogtreecommitdiffstats
path: root/contrib/lpeg
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/lpeg')
-rw-r--r--contrib/lpeg/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/lpeg/CMakeLists.txt b/contrib/lpeg/CMakeLists.txt
index 8ac8d2c75..2362aac9c 100644
--- a/contrib/lpeg/CMakeLists.txt
+++ b/contrib/lpeg/CMakeLists.txt
@@ -4,9 +4,11 @@ SET(LPEGSRC lpcap.c
lptree.c
lpvm.c)
+IF(ENABLE_FULL_DEBUG MATCHES "OFF")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET(LPEG_CFLAGS "${LPEG_CFLAGS} -O3")
endif ()
+ENDIF()
SET(LIB_TYPE STATIC)
ADD_LIBRARY(rspamd-lpeg ${LIB_TYPE} ${LPEGSRC})