mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 06:59:07 +08:00
10b7a17834
Co-authored-by: Mengna-Li <v-limengna@microsoft.com>
31 lines
900 B
CMake
31 lines
900 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ashvardanian/SimSIMD
|
|
REF "v${VERSION}"
|
|
SHA512 ab78d4415ed0f2964470ccd36d3d737a2715b1a5a4222613d2f0f4be6a516da0e339329cbd421c6b7f6a1bc701da6ec2f3937cba5a8ea1f632beea8000d90c8f
|
|
HEAD_REF main
|
|
PATCHES
|
|
export-target.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DSIMSIMD_BUILD_TESTS=OFF
|
|
-DSIMSIMD_BUILD_BENCHMARKS=OFF
|
|
"-DSIMSIMD_BUILD_SHARED=${BUILD_SHARED}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
if(BUILD_SHARED)
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-simsimd)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
else()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|