Skip to content

Commit 28ba4d4

Browse files
committed
packaging: include BUILD_INFO in dev package
Install the generated BUILD_INFO file into the dev package at share/doc/scylla-cpp-driver/BUILD_INFO. This makes the build environment metadata available to consumers who install the development package (DEB/RPM/PKG/MSI).
1 parent 827ce5d commit 28ba4d4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scylla-rust-wrapper/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,13 @@ if(CASS_INSTALL_HEADER)
301301
COMPONENT ${SCYLLA_DRIVER_DEV_COMPONENT_NAME})
302302
endif()
303303

304+
# Build metadata goes to dev package
305+
if(TARGET build_info)
306+
install(FILES ${CMAKE_BINARY_DIR}/BUILD_INFO
307+
DESTINATION share/doc/scylla-cpp-driver
308+
COMPONENT ${SCYLLA_DRIVER_DEV_COMPONENT_NAME})
309+
endif()
310+
304311
# Install the dynamic/shared library
305312
if(CASS_BUILD_SHARED)
306313
# Versioned shared library goes to runtime package

0 commit comments

Comments
 (0)