chore(3p/nix): use GNUInstallDirs to determine output directory names

This ensures that we install both glog's .a and all the .so files we
generate into a single consistent output lib path (which is, err,
lib64, but whatever).

Change-Id: Ib6ac6eacf5f56e4b719cfb586db731efc122c31b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/544
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Luke Granger-Brown 2020-06-21 17:20:59 +01:00 committed by lukegb
parent a54f155c07
commit 739a45f9e4
5 changed files with 7 additions and 4 deletions

View file

@ -104,4 +104,4 @@ target_link_libraries(nixstore
)
INSTALL(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nix/libstore)
INSTALL(TARGETS nixstore DESTINATION lib)
INSTALL(TARGETS nixstore DESTINATION ${CMAKE_INSTALL_LIBDIR})