about summary refs log tree commit diff
path: root/third_party/nix/src/libmain
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libmain')
-rw-r--r--third_party/nix/src/libmain/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/third_party/nix/src/libmain/CMakeLists.txt b/third_party/nix/src/libmain/CMakeLists.txt
index 825e8ee5d666..a4ba48d7087b 100644
--- a/third_party/nix/src/libmain/CMakeLists.txt
+++ b/third_party/nix/src/libmain/CMakeLists.txt
@@ -4,10 +4,14 @@ set_property(TARGET nixmain PROPERTY CXX_STANDARD 17)
 include_directories(${PROJECT_BINARY_DIR}) # for config.h
 target_include_directories(nixmain PUBLIC "${nix_SOURCE_DIR}/src")
 
-target_sources(nixmain
-  PUBLIC
+set(HEADER_FILES
     common-args.hh
     shared.hh
+)
+
+target_sources(nixmain
+  PUBLIC
+    ${HEADER_FILES}
   PRIVATE
     common-args.cc
     shared.cc
@@ -22,4 +26,5 @@ target_link_libraries(nixmain
   glog
 )
 
+INSTALL(FILES ${HEADER_FILES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nix/libmain)
 INSTALL(TARGETS nixmain DESTINATION lib)