Jan Kundrát 6c17ed7e61 cmake: Fix libevent version detection
On my x86_64 Gentoo Linux, the CMake build won't find libevent because
Gentoo wraps include files via multilib-aware wrappers. This means that
the "real" include file lives in
/usr/include/x86_64-pc-linux-gnu/event2/event-config.h , and that
there's a proxy file at /usr/include/event2/event-config.h which check
the compile target's architecture and includes the real file from a
correct directory.

In other words, nghttp2's CMake FindLibevent.cmake reads a wrong file
and ends up not detecting the libevent's version.

This patch fixes it by simply using the version reported by pkg-config
as the libevent's version if the original method fails. I will be happy
to change this patch to always check version from pkg-config if you're
OK with that.

Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
2018-10-03 17:38:17 +02:00
2017-02-09 18:58:00 +01:00
2018-10-02 01:34:32 +09:00
2018-06-09 16:21:30 +09:00
2012-10-27 14:54:06 -07:00
2016-12-14 23:26:52 +09:00
2018-06-09 16:21:30 +09:00
2014-03-30 19:26:37 +09:00
2016-12-08 21:17:02 +01:00
2016-08-25 22:37:18 +09:00
2018-09-02 15:15:52 +09:00
2012-01-18 00:53:12 +09:00
2018-09-02 15:55:08 +09:00
2016-02-14 17:40:58 +09:00
2017-08-26 12:54:03 +08:00
2014-10-27 21:27:41 +09:00
2014-10-27 21:27:41 +09:00
2014-10-27 21:27:41 +09:00
2016-10-09 18:43:36 +09:00
2016-01-09 18:26:45 +09:00
2016-12-10 22:40:18 +09:00
2015-01-10 00:37:42 +09:00
2015-04-21 23:48:45 +09:00
2013-07-13 00:43:06 +09:00
2015-03-25 21:04:49 +08:00
2012-01-18 00:53:12 +09:00
2018-03-12 09:19:19 +09:00
2016-04-25 22:41:48 +09:00

See README.rst
Description
nghttp2 - HTTP/2 C Library and tools
Readme 42 MiB
Languages
C++ 51.6%
C 38.3%
Go 4.1%
Python 1.8%
M4 1.7%
Other 2.5%