Skip to content

Commit

Permalink
Revert "Remove UNIX path"
Browse files Browse the repository at this point in the history
This reverts commit c873c6a.
  • Loading branch information
jerinphilip committed Dec 20, 2023
1 parent 813764b commit 5c40632
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions slimt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ foreach(SLIMT_LIB IN LISTS SLIMT_LIBRARIES)
target_compile_definitions(${SLIMT_LIB} PRIVATE ${SLIMT_COMPILE_DEFINITIONS})
endforeach()

if(UNIX)
install(FILES ${SLIMT_PUBLIC_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/slimt)
install(FILES ${SLIMT_GENERATED_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/slimt/)
install(TARGETS ${SLIMT_LIBRARIES} DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif(UNIX)

# The following is partial code for enabling `find_package(slimt ...)` Not
# working at the moment, due to the inablility to export sentencepiece
# (accounting for it as an installed target).
Expand Down

0 comments on commit 5c40632

Please sign in to comment.