You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 421B

123456789101112131415
  1. SET(LPEGSRC lpcap.c
  2. lpcode.c
  3. lpprint.c
  4. lptree.c
  5. lpvm.c)
  6. IF(ENABLE_FULL_DEBUG MATCHES "OFF")
  7. if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
  8. SET(LPEG_CFLAGS "${LPEG_CFLAGS} -O3")
  9. endif ()
  10. ENDIF()
  11. SET(LIB_TYPE STATIC)
  12. ADD_LIBRARY(rspamd-lpeg ${LIB_TYPE} ${LPEGSRC})
  13. set_target_properties(rspamd-lpeg PROPERTIES COMPILE_FLAGS "${LPEG_CFLAGS}")