Skip to content

Commit 7462bb6

Browse files
jpalusObserverOfTime
authored andcommitted
build: install pkgconfig file to libdir
pkgconfig file carries arch dependent information and therefore should be installed in arch dependent direcory. also it aligns cmake and make target directories
1 parent 9dca2b6 commit 7462bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ macro(add_parser name)
5555
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree-sitter-${name}.h"
5656
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/tree_sitter")
5757
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-${name}.pc"
58-
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig")
58+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
5959
install(TARGETS tree-sitter-${name}
6060
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
6161
endmacro()

0 commit comments

Comments
 (0)