vcpkg/ports/libmidi2/portfile.cmake
Andrew Mee 8289310816
[libmidi2] Update to v0.11 (#40417)
Co-authored-by: Andrew Mee <andrew@midi2.dev>
2024-08-13 15:23:54 -07:00

22 lines
633 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO midi2-dev/AM_MIDI2.0Lib
REF "v${VERSION}"
SHA512 bcff7e1360d18f1e5cf5c89eda3cd8c3ff33605063bd12def1ddd6ecede950e8653ff8279f05f4f29a8a8f13c24cf31d3199c09b14db5cf37febb49c4b14ea67
HEAD_REF main
)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")