cmake: Use pkg-config to search for libev, add options to configure location manually
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?
Updated by stbuehler almost 11 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:
Also available in: Atom