diff --git a/CMakeLists.txt b/CMakeLists.txt index a31d809..a6c0313 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ else() endif() project(c-capnproto LANGUAGES ${languages}) -configure_file(c-capnproto.pc.in c-capnproto.pc) +configure_file(c-capnproto.pc.in c-capnproto.pc @ONLY) include(CTest) diff --git a/c-capnproto.pc.in b/c-capnproto.pc.in index 901ecbe..8924d17 100644 --- a/c-capnproto.pc.in +++ b/c-capnproto.pc.in @@ -1,8 +1,8 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -libdir=${@CMAKE_INSTALL_LIBDIR@} +libdir=${prefix}/lib bindir=${prefix}/bin -includedir=${@CMAKE_INSTALL_INCLUDEDIR@} +includedir=${prefix}/include codegen=${bindir}/capnpc-c Name: c-capnproto