From 891355581d65e4f9e3aaffd7079deaef0fa4065d Mon Sep 17 00:00:00 2001 From: Rongsong Shen Date: Fri, 5 Sep 2025 15:35:23 +0800 Subject: [PATCH] fix missed file for cmake install --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7973d2..a31d809 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,7 @@ endif() option(C_CAPNPROTO_ENABLE_INSTALL "Add instructions for 'cmake --install' of CapnC_Runtime library and capnpc-c executable" ON) if(C_CAPNPROTO_ENABLE_INSTALL) + set(CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib) install(TARGETS CapnC_Runtime capnpc-c EXPORT CapnC) install(EXPORT CapnC @@ -170,7 +171,7 @@ if(C_CAPNPROTO_ENABLE_INSTALL) NAMESPACE CapnC:: FILE CapnCConfig.cmake) install(FILES lib/capnp_c.h TYPE INCLUDE) - install(FILES c-capnproto.pc + install(FILES build/c-capnproto.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") endif()