mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 22:08:04 +08:00
23 lines
838 B
CMake
23 lines
838 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO asmaloney/libE57Format
|
|
REF "v${VERSION}"
|
|
SHA512 d194dce5cb455da9e27e3e766054ee46ab7ecc140ce05d29da96179de547791a2de866710bc99d9d1a5c1f8e8c963df1ec13aae81e2c4f20f71ad3d2eb1f05ed
|
|
HEAD_REF master
|
|
PATCHES
|
|
prevent_warning_as_errors.diff # see https://github.com/asmaloney/libE57Format/issues/256
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DE57_BUILD_TEST=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME E57Format CONFIG_PATH "lib/cmake/E57Format")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/libe57format RENAME copyright)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|