chore(3p/nix): export library headers to include/ in output.
Change-Id: I87eb6e59782d720015d351d8829dc7b8688e01f2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/543 Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
1ff26fb8c5
commit
a54f155c07
4 changed files with 28 additions and 8 deletions
9
third_party/nix/src/libstore/CMakeLists.txt
vendored
9
third_party/nix/src/libstore/CMakeLists.txt
vendored
|
@ -19,8 +19,7 @@ string(CONFIGURE
|
|||
|
||||
file(WRITE ${PROJECT_BINARY_DIR}/generated/schema.sql.hh ${NIX_SCHEMA_GEN})
|
||||
|
||||
target_sources(nixstore
|
||||
PUBLIC
|
||||
set(HEADER_FILES
|
||||
binary-cache-store.hh
|
||||
builtins.hh
|
||||
crypto.hh
|
||||
|
@ -46,6 +45,11 @@ target_sources(nixstore
|
|||
ssh.hh
|
||||
store-api.hh
|
||||
worker-protocol.hh
|
||||
)
|
||||
|
||||
target_sources(nixstore
|
||||
PUBLIC
|
||||
${HEADER_FILES}
|
||||
|
||||
PRIVATE
|
||||
${PROJECT_BINARY_DIR}/generated/schema.sql.hh
|
||||
|
@ -99,4 +103,5 @@ target_link_libraries(nixstore
|
|||
sodium
|
||||
)
|
||||
|
||||
INSTALL(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nix/libstore)
|
||||
INSTALL(TARGETS nixstore DESTINATION lib)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue