aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/simsimd/export-target.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/simsimd/export-target.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/simsimd/export-target.patch')
-rw-r--r--vcpkg/ports/simsimd/export-target.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/simsimd/export-target.patch b/vcpkg/ports/simsimd/export-target.patch
new file mode 100644
index 0000000..9ed097b
--- /dev/null
+++ b/vcpkg/ports/simsimd/export-target.patch
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b30d554..d8ab4fc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -115,6 +115,23 @@ endif ()
+ if (SIMSIMD_BUILD_SHARED)
+ set(SIMSIMD_SOURCES ${SIMSIMD_SOURCES} c/lib.c)
+ add_library(simsimd_shared SHARED ${SIMSIMD_SOURCES})
+- target_include_directories(simsimd_shared PUBLIC "${PROJECT_SOURCE_DIR}/include")
++ target_include_directories(simsimd_shared PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
+ set_target_properties(simsimd_shared PROPERTIES OUTPUT_NAME simsimd)
++
++ install(TARGETS simsimd_shared EXPORT unofficial-simsimd-config
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib
++ RUNTIME DESTINATION bin)
++
++ install(EXPORT unofficial-simsimd-config
++ FILE unofficial-simsimd-config.cmake
++ NAMESPACE unofficial::simsimd::
++ DESTINATION share/unofficial-simsimd
++ )
+ endif ()
++
++install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/
++ DESTINATION include
++ FILES_MATCHING
++ PATTERN *.h
++)