Skip to content

cmake: Permit disabling external http-parser#4278

Merged
pks-t merged 1 commit intolibgit2:masterfrom
pks-t:pks/cmake-disable-http-parser
Jun 26, 2017
Merged

cmake: Permit disabling external http-parser#4278
pks-t merged 1 commit intolibgit2:masterfrom
pks-t:pks/cmake-disable-http-parser

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Jun 22, 2017

This patch was sent to us via mail. Opening a PR here in the name of Jason Cooper to put it up for discussion.


When attempting to build libgit2 as an isolated static lib, CMake
gleefully attempts to use the system http-parser. This is typically
seen on Linux systems which install header files with every package,
such as Gentoo.

Allow developers to forcibly disable using the system http-parser with
the config switch USE_EXT_HTTP_PARSER. Defaults to ON to maintain
previous behavior.

When attempting to build libgit2 as an isolated static lib, CMake
gleefully attempts to use the system http-parser.  This is typically
seen on Linux systems which install header files with every package,
such as Gentoo.

Allow developers to forcibly disable using the system http-parser with
the config switch USE_EXT_HTTP_PARSER.  Defaults to ON to maintain
previous behavior.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
@pks-t pks-t merged commit 6f02a4d into libgit2:master Jun 26, 2017
@pks-t pks-t deleted the pks/cmake-disable-http-parser branch June 27, 2017 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant