réplica de
https://github.com/rspamd/rspamd.git
synced 2024-08-20 02:13:12 +02:00
16 líneas
421 B
CMake
16 líneas
421 B
CMake
SET(LPEGSRC lpcap.c
|
|
lpcode.c
|
|
lpprint.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})
|
|
set_target_properties(rspamd-lpeg PROPERTIES COMPILE_FLAGS "${LPEG_CFLAGS}")
|