mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 17:53:28 +08:00
1b30a6adfd
* Update to HEXL v1.2.2 * Update version database
39 lines
1.1 KiB
CMake
39 lines
1.1 KiB
CMake
# This library only supports "x64" architecture
|
|
vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO intel/hexl
|
|
REF 343acab47f7612c76cc09bfe39ec9435283fb0e6
|
|
SHA512 afaf0c68559547d6617cb75ff465f5c4998f00bda1e5edb399e4a80f8a67628fbbbee6b3b484ec96944c8686b9b2180e6523c1329619454b7752a46ffa2a913c
|
|
HEAD_REF 1.2.2
|
|
)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
set(HEXL_SHARED OFF)
|
|
else()
|
|
set(HEXL_SHARED ON)
|
|
endif()
|
|
|
|
vcpkg_find_acquire_program(GIT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
"-DHEXL_BENCHMARK=OFF"
|
|
"-DHEXL_COVERAGE=OFF"
|
|
"-DHEXL_TESTING=OFF"
|
|
"-DHEXL_SHARED_LIB=${HEXL_SHARED}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake/hexl-1.2.2")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
|
|
|
vcpkg_copy_pdbs()
|