vcpkg/ports/pfultz2-linq/portfile.cmake

25 lines
729 B
CMake
Raw Normal View History

2019-05-14 00:57:54 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pfultz2/Linq
REF 7ff0a73fed52be5e11df3d79128ce7b11f430af2
SHA512 6768e28bf17568436b4c3fed18f6b1edbe048b871ebee25580419b805498beb0800e473ecdc5acc0f9f89bec47d16fd3806018ce6395bdf14a8e2975cde9381f
2019-05-14 00:57:54 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-05-14 00:57:54 +08:00
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
2019-05-14 00:57:54 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/linq PACKAGE_NAME linq)
2019-05-14 00:57:54 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
2019-05-14 00:57:54 +08:00
# Handle copyright
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)