From bb2b5403073b2cf9a4cb8dd7e6140f38310bac86 Mon Sep 17 00:00:00 2001 From: Peter Rindal Date: Tue, 17 Nov 2026 21:02:33 -0800 Subject: [PATCH] Install generated volePSI config header --- cmake/install.cmake | 6 +++++- tests/cmakeTests/main.cpp | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmake/install.cmake b/cmake/install.cmake index c3e606d..505b6c1 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -56,6 +56,10 @@ install( DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/" FILES_MATCHING PATTERN "*.h") +# config.h is generated in the build tree, so the source-header rule misses it. +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/volePSI/config.h" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/volePSI") + # install config install(EXPORT volePSITargets @@ -66,4 +70,4 @@ install(EXPORT volePSITargets export(EXPORT volePSITargets FILE "${CMAKE_CURRENT_BINARY_DIR}/volePSITargets.cmake" NAMESPACE visa:: -) \ No newline at end of file +) diff --git a/tests/cmakeTests/main.cpp b/tests/cmakeTests/main.cpp index 6b5530c..da827ff 100644 --- a/tests/cmakeTests/main.cpp +++ b/tests/cmakeTests/main.cpp @@ -1,6 +1,7 @@ #include "volePSI/Paxos.h" +#include "volePSI/config.h" int main() { @@ -12,4 +13,4 @@ int main() pp.setInput({}); return 0; -} \ No newline at end of file +}