Project

General

Profile

Actions

Feature #2386

open

cmake: Use pkg-config to search for libev, add options to configure location manually

Added by tyll over 9 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal

Description

On Fedora the correct path for ev.h is libev/ev.h, but fcgi-debug uses a hardcoded path without the libev directory. Can you please use pkgconfig or something else to determine the proper path for the header file?


Files

0.html (93 Bytes) 0.html 123, 2020-11-03 02:40
Actions #1

Updated by stbuehler over 9 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from fcgi-debug does not compile on Fedora (wrong path to ev.h) to cmake: Use pkg-config to search for libev, add options to configure location manually

The path is correct, but you have to add /usr/include/libev to the list of include directories, like CFLAGS=-I/usr/include/libev

Upstream libev still has no pkg-config files (although i think debian and opensuse have them). and yes, i tried getting it upstream :)

I'll tag this as a feature request to make this easier to configure.

As a reference: lighttpd2 already has this:

http://cgit.lighttpd.net/lighttpd/lighttpd2.git/tree/cmake/FindLibEV.cmake

Actions #2

Updated by 123 8 months ago

Actions

Also available in: Atom