vcpkg/ports/usrsctp/portfile.cmake

27 lines
682 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2018-09-01 05:34:58 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sctplab/usrsctp
2021-09-10 12:16:23 +08:00
REF 0.9.5.0
SHA512 7b28706449f9365ba9750fd39925e7171516a1e3145d123ec69a12486637ae2393ad4c587b056403298dc13c149f0b01a262cbe4852abca42e425d7680c77ee3
2018-09-01 05:34:58 +08:00
HEAD_REF master
)
2021-09-10 12:16:23 +08:00
vcpkg_cmake_configure(
2018-09-01 05:34:58 +08:00
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-Dsctp_werror=OFF
-Dsctp_build_programs=OFF
2018-09-01 05:34:58 +08:00
)
2021-09-10 12:16:23 +08:00
vcpkg_cmake_install()
2018-09-01 05:34:58 +08:00
2021-09-10 12:16:23 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2018-09-01 05:34:58 +08:00
2021-09-10 12:16:23 +08:00
configure_file("${SOURCE_PATH}/LICENSE.md" "${CURRENT_PACKAGES_DIR}/share/usrsctp/copyright" COPYONLY)
2018-09-01 05:34:58 +08:00
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()