mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 02:39:08 +08:00
29 lines
882 B
CMake
29 lines
882 B
CMake
# Upstream uses CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS, which causes issues
|
|
# https://github.com/thestk/rtmidi/blob/4.0.0/CMakeLists.txt#L20
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO thestk/rtmidi
|
|
REF 84a99422a3faf1ab417fe71c0903a48debb9376a # 5.0.0
|
|
SHA512 388e280b7966281e22b0048d6fb2541921df1113d84e49bbc444fff591d2025588edd8d61dbe5ff017afd76c26fd05edc8f9f15d0cce16315ccc15e6aac1d57f
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DRTMIDI_API_ALSA=OFF
|
|
-DRTMIDI_API_JACK=OFF
|
|
-DRTMIDI_BUILD_TESTING=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|