Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 4de722b

Browse files
committed
fix #143 by properly setting pkgconfig dirs
setting pkgconfig libdir and includedir during build according to GNUInstallDirs. Patch proposed by @[email protected]
1 parent f78d0a8 commit 4de722b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include(CheckIncludeFiles)
1414
include(CheckTypeSize)
1515
include(CheckCCompilerFlag)
1616
include(TestBigEndian)
17+
include(GNUInstallDirs)
1718

1819
check_function_exists(strndup HAVE_STRNDUP)
1920
check_function_exists(strnlen HAVE_STRNLEN)

evhtp.pc.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
2-
libdir=@LIB_INSTALL_DIR@
3-
includedir=@INCLUDE_INSTALL_DIR@/evhtp
2+
exec_prefix=${prefix}
3+
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
4+
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/evhtp
45

56
Name: libevhtp
67
Description: A more flexible replacement for libevent's httpd API

0 commit comments

Comments
 (0)