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

Commit

Permalink
fix #143 by properly setting pkgconfig dirs
Browse files Browse the repository at this point in the history
setting pkgconfig libdir and includedir during build according to
GNUInstallDirs.
Patch proposed by @[email protected]
  • Loading branch information
schmittlauch committed Sep 18, 2019
1 parent f78d0a8 commit 4de722b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include(CheckIncludeFiles)
include(CheckTypeSize)
include(CheckCCompilerFlag)
include(TestBigEndian)
include(GNUInstallDirs)

check_function_exists(strndup HAVE_STRNDUP)
check_function_exists(strnlen HAVE_STRNLEN)
Expand Down
5 changes: 3 additions & 2 deletions evhtp.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@INCLUDE_INSTALL_DIR@/evhtp
exec_prefix=${prefix}
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/evhtp

Name: libevhtp
Description: A more flexible replacement for libevent's httpd API
Expand Down

0 comments on commit 4de722b

Please sign in to comment.