mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-01 13:37:55 +08:00
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.
This commit is contained in:
parent
f4622dce99
commit
8e57be1616
@ -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()
|
Loading…
x
Reference in New Issue
Block a user