vcpkg/ports/libmidi2/portfile.cmake
Andrew Mee b388ee1800
[libmidi2] Update to v0.12 (#41176)
Co-authored-by: Andrew Mee <andrew@midi2.dev>
2024-09-26 10:41:23 -04:00

22 lines
633 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO midi2-dev/AM_MIDI2.0Lib
REF "v${VERSION}"
SHA512 fb00fb1a00f0ce7f74ee807f8a5590f8628ee7cf6ecfc51a8a01c2be5aa2b1a0affc20e2360c3d07cf59c79875fd0d5af3dd7b52dac082a5d8f1d97a9436c0e0
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")