vcpkg/ports/cppcodec/portfile.cmake

25 lines
650 B
CMake
Raw Normal View History

2019-05-29 06:31:46 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tplgy/cppcodec
REF v0.2
SHA512 50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3
HEAD_REF master
PATCHES 0001-Fix-62.patch
2019-05-29 06:31:46 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-05-29 06:31:46 +08:00
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
2019-05-29 06:31:46 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
2019-05-29 06:31:46 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
2019-05-29 06:31:46 +08:00
vcpkg_fixup_pkgconfig()