From df949ca20c71021be04f70728d786450e3bea764 Mon Sep 17 00:00:00 2001 From: FoolHen Date: Wed, 10 Jun 2026 16:32:23 +0200 Subject: [PATCH] Also install ftxui shared libraries from FetchContent pipedal_kconfig links against libftxui-component.so, libftxui-dom.so, and libftxui-screen.so built via FetchContent. Without explicit install rules, these are missing after installation on distros that don't provide ftxui as a system package (e.g. Arch), causing 'cannot open shared object file' at runtime. Also update the comment to reflect all three dependency groups: SQLiteCpp, libzip, and ftxui. --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 882c204..63fcd30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,8 @@ if(NOT PIPEDAL_DISABLE_COPYRIGHT_BUILD) DESTINATION /etc/pipedal/react/var/) endif() -# Install SQLiteCpp and libzip shared libraries (their own install targets are disabled) +# Install shared libraries from submodules and FetchContent dependencies +# whose own install targets are disabled (SQLITECPP_INSTALL=OFF, LIBZIP_DO_INSTALL=OFF) install ( FILES ${PROJECT_BINARY_DIR}/modules/SQLiteCpp/libSQLiteCpp.so.0 @@ -91,6 +92,13 @@ install ( ${PROJECT_BINARY_DIR}/modules/libzip/lib/libzip.so.5 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib ) +install ( + FILES + ${PROJECT_BINARY_DIR}/_deps/ftxui-build/libftxui-component.so.5.0.0 + ${PROJECT_BINARY_DIR}/_deps/ftxui-build/libftxui-dom.so.5.0.0 + ${PROJECT_BINARY_DIR}/_deps/ftxui-build/libftxui-screen.so.5.0.0 + DESTINATION ${CMAKE_INSTALL_PREFIX}/lib +) install ( DIRECTORY ${PROJECT_SOURCE_DIR}/src/templates