aboutsummaryrefslogtreecommitdiff
path: root/ports/http-parser
diff options
context:
space:
mode:
authorab <ab@acunetix.com>2017-01-12 12:28:08 +0100
committerab <ab@acunetix.com>2017-01-12 12:28:08 +0100
commit8e57be16161fca1da94cc9faacb3d4bfaef2c6ec (patch)
tree4a5831420c4617902a1ddebc6a7b380e0244c79c /ports/http-parser
parentf4622dce99378894b71c07e7fe989480981b5d56 (diff)
downloadvcpkg-8e57be16161fca1da94cc9faacb3d4bfaef2c6ec.tar.gz
vcpkg-8e57be16161fca1da94cc9faacb3d4bfaef2c6ec.zip
On release set HTTP_PARSER_STRICT to zero.
This was done to match the http-parser makefile i.e. building in release mode strict parse is disabled (which is faster) else (in debug) strict parser is used.
Diffstat (limited to 'ports/http-parser')
-rw-r--r--ports/http-parser/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ports/http-parser/CMakeLists.txt b/ports/http-parser/CMakeLists.txt
index 6e9067a04..d959fff79 100644
--- a/ports/http-parser/CMakeLists.txt
+++ b/ports/http-parser/CMakeLists.txt
@@ -5,13 +5,17 @@ if (BUILD_SHARED_LIBS)
SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
+if(CMAKE_BUILD_TYPE MATCHES "Release")
+ add_definitions(-DHTTP_PARSER_STRICT=0)
+endif()
+
add_library(http_parser http_parser.c http_parser.h)
install(TARGETS http_parser
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
- ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
)
if (NOT SKIP_INSTALL_HEADERS)
- install(FILES http_parser.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
+ install(FILES http_parser.h DESTINATION "${CMAKE_INSTALL_PREFIX}/include")
endif() \ No newline at end of file