diff options
Diffstat (limited to 'contrib/http-parser/CMakeLists.txt')
-rw-r--r-- | contrib/http-parser/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/http-parser/CMakeLists.txt b/contrib/http-parser/CMakeLists.txt index ac870d9c4..d54646e55 100644 --- a/contrib/http-parser/CMakeLists.txt +++ b/contrib/http-parser/CMakeLists.txt @@ -1,9 +1,10 @@ SET(HTTPSRC http_parser.c) +SET(HTTP_COMPILE_FLAGS "-DRSPAMD_LIB") if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") + set(HTTP_COMPILE_FLAGS "${HTTP_COMPILE_FLAGS} -O3") endif () ADD_LIBRARY(rspamd-http-parser STATIC ${HTTPSRC}) SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES VERSION ${RSPAMD_VERSION}) -SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
\ No newline at end of file +SET_TARGET_PROPERTIES(rspamd-http-parser PROPERTIES COMPILE_FLAGS "${HTTP_COMPILE_FLAGS}")
\ No newline at end of file |