diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tree-sitter-c/pkgconfig.diff | |
Diffstat (limited to 'vcpkg/ports/tree-sitter-c/pkgconfig.diff')
| -rw-r--r-- | vcpkg/ports/tree-sitter-c/pkgconfig.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/tree-sitter-c/pkgconfig.diff b/vcpkg/ports/tree-sitter-c/pkgconfig.diff new file mode 100644 index 0000000..7073a30 --- /dev/null +++ b/vcpkg/ports/tree-sitter-c/pkgconfig.diff @@ -0,0 +1,24 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3771647..772f62a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -45,16 +45,16 @@ set_target_properties(tree-sitter-c + SOVERSION "${TREE_SITTER_ABI_VERSION}.${PROJECT_VERSION_MAJOR}" + DEFINE_SYMBOL "") + ++include(GNUInstallDirs) ++ + configure_file(bindings/c/tree-sitter-c.pc.in + "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-c.pc" @ONLY) + +-include(GNUInstallDirs) +- + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bindings/c/tree_sitter" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" + FILES_MATCHING PATTERN "*.h") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tree-sitter-c.pc" +- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig") ++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + install(TARGETS tree-sitter-c + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + |