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/libexpr/CMakeLists.txt
vendored
9
third_party/nix/src/libexpr/CMakeLists.txt
vendored
|
|
@ -18,8 +18,7 @@ FLEX_TARGET(NixLexer lexer.l
|
|||
|
||||
ADD_FLEX_BISON_DEPENDENCY(NixLexer NixParser)
|
||||
|
||||
target_sources(nixexpr
|
||||
PUBLIC
|
||||
set(HEADER_FILES
|
||||
attr-path.hh
|
||||
attr-set.hh
|
||||
common-eval-args.hh
|
||||
|
|
@ -35,6 +34,11 @@ target_sources(nixexpr
|
|||
value.hh
|
||||
value-to-json.hh
|
||||
value-to-xml.hh
|
||||
)
|
||||
|
||||
target_sources(nixexpr
|
||||
PUBLIC
|
||||
${HEADER_FILES}
|
||||
|
||||
PRIVATE
|
||||
${PROJECT_BINARY_DIR}/generated/parser-tab.hh
|
||||
|
|
@ -72,4 +76,5 @@ target_link_libraries(nixexpr
|
|||
gccpp
|
||||
)
|
||||
|
||||
INSTALL(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nix/libexpr)
|
||||
INSTALL(TARGETS nixexpr DESTINATION lib)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue