aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-01-13 16:02:35 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-01-13 16:02:35 -0800
commitc938d56e4976cedfb8f76df834f2c1554fdd26d5 (patch)
tree9ded1c9308c29d8554f562dde1df9d56a58d0c4c
parent6f593cf3e25d06adcabba0c3fc3558323519bf12 (diff)
parentbf47d0d386d5490936917ab5bf37d801f6681cc1 (diff)
downloadvcpkg-c938d56e4976cedfb8f76df834f2c1554fdd26d5.tar.gz
vcpkg-c938d56e4976cedfb8f76df834f2c1554fdd26d5.zip
Merge pull request #534 from ab-acx/http-parser-strict
On release set HTTP_PARSER_STRICT to zero.
-rw-r--r--ports/http-parser/CMakeLists.txt10
-rw-r--r--ports/http-parser/CONTROL2
2 files changed, 8 insertions, 4 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
diff --git a/ports/http-parser/CONTROL b/ports/http-parser/CONTROL
index 41d234d26..605f3354c 100644
--- a/ports/http-parser/CONTROL
+++ b/ports/http-parser/CONTROL
@@ -1,3 +1,3 @@
Source: http-parser
-Version: 2.7.1
+Version: 2.7.1-1
Description: HTTP Parser. \ No newline at end of file