Project

General

Profile

Feature #2386

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

Added by tyll over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
2012-01-31
Due date:
% Done:

0%

Estimated time:

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?

History

#1 Updated by stbuehler over 5 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

Also available in: Atom