cmake: fix linking http-parser into shared libs

This commit is contained in:
Peter Wu 2016-02-16 14:09:10 +01:00
parent 3dd57e1f59
commit a909eb6b23
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ if(ENABLE_THIRD_PARTY)
http-parser/http_parser.c http-parser/http_parser.c
) )
add_library(http-parser OBJECT ${LIBHTTP_PARSER_SOURCES}) add_library(http-parser OBJECT ${LIBHTTP_PARSER_SOURCES})
set_target_properties(http-parser PROPERTIES
POSITION_INDEPENDENT_CODE ON)
if(HAVE_NEVERBLEED) if(HAVE_NEVERBLEED)
set(NEVERBLEED_SOURCES set(NEVERBLEED_SOURCES