mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 12:59:06 +08:00
fd5058aad6
* [uni-algo] Add new port * [uni-algo] Update hash * [uni-algo] Remove header-only feature vcpkg maintainer-guide.md: Do not use features to implement alternatives Header-only/constexpr feature in v0.7.0 doesn't implement one system locale function so it violates this rule. * [uni-algo] Clean excessive comments vcpkg maintainer-guide.md: Avoid excessive comments in portfiles * [uni-algo] Format json * [uni-algo] Update baseline Run: vcpkg x-add-version uni-algo * [uni-algo] Remove vcpkg_minimum_required * [uni-algo] Update baseline * [uni-algo] Enable install always * [uni-algo] Rerun x-add-version
28 lines
832 B
CMake
28 lines
832 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO uni-algo/uni-algo
|
|
REF "v${VERSION}"
|
|
SHA512 031d6ec2a1a2c09972a68d7b9bf49a209441e69802d5d8d37b2a37d9b6e002427496d420629d2119dc1d0e80f38c7b220e253b0858db5f172789472447041799
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DUNI_ALGO_INSTALL=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
# Remove empty directory
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/uni_algo/impl/doc")
|
|
|
|
# Install copyright and usage
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|