diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-19 10:55:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-19 10:55:28 +0000 |
commit | dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e (patch) | |
tree | e5483eda2482a320ad834bad246fd7e0759c308d /contrib/http-parser | |
parent | a13bc71723ef269d7dcee56416a5f42cd8ee8a72 (diff) | |
download | rspamd-dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e.tar.gz rspamd-dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e.zip |
Compile external tools with optimizations.
Diffstat (limited to 'contrib/http-parser')
-rw-r--r-- | contrib/http-parser/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/http-parser/CMakeLists.txt b/contrib/http-parser/CMakeLists.txt index ff4687cb0..40b0d55c9 100644 --- a/contrib/http-parser/CMakeLists.txt +++ b/contrib/http-parser/CMakeLists.txt @@ -1,5 +1,8 @@ SET(HTTPSRC http_parser.c) +if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") +endif () ADD_LIBRARY(rspamd-http-parser ${LINK_TYPE} ${HTTPSRC}) SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES VERSION ${RSPAMD_VERSION}) SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") |