nghttp2/cmake
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
..
ExtractValidFlags.cmake cmake: fix jemalloc, libevent include dirs 2016-03-13 16:42:35 +01:00
FindCUnit.cmake cmake: add auto-detection, improve library search 2016-02-15 01:12:07 +01:00
FindCython.cmake cmake: add python support 2016-02-16 12:17:49 +01:00
FindJansson.cmake cmake: fix version checks for external packages 2016-03-13 15:06:56 +01:00
FindJemalloc.cmake cmake: fix jemalloc, libevent include dirs 2016-03-13 16:42:35 +01:00
FindLibcares.cmake Add libc-ares detection to cmake 2016-12-10 22:40:18 +09:00
FindLibev.cmake cmake: add auto-detection, improve library search 2016-02-15 01:12:07 +01:00
FindLibevent.cmake cmake: Fix libevent version detection 2018-10-03 17:38:17 +02:00
FindSpdylay.cmake cmake: improve Spdylay detection 2016-02-16 12:48:36 +01:00
Version.cmake CMake WIP 2016-02-13 20:13:42 +01:00