Commit Graph

4 Commits

Author SHA1 Message Date
Nicolai Grodzitski
8a624f93b7 Improve cmake routine for nodejs/http-parser. (#3283)
* Improve cmake routine for nodejs/http-parser. Now it is installed as a
propper target and can be searched with `find_package(http-parser REQUIRED)` and then used as
a dependency like this: `target_link_libraries(main PRIVATE
nodejs::http_parser)`. Also using namespace for referencing http-parser
lib, which is safer, although the old name must still work, as names of
the binaries remained unchanged.

* Remove duplicate variable definition and add newlines at the end of files.

* [http-parser] Rename exported targets to "unofficial", since they are not blessed by upstream
2018-04-26 14:51:13 -07:00
ab
8e57be1616 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.
2017-01-12 12:28:08 +01:00
ab
f62ad96c9a Update the cmakelists to build shared and static libraries properly. 2016-12-05 17:09:33 +01:00
ab
89314e0132 Adding http-parser library 2016-11-25 16:33:16 +01:00