vcpkg/ports/reproc/portfile.cmake

28 lines
698 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DaanDeMeyer/reproc
REF "v${VERSION}"
2024-10-18 13:46:42 +08:00
SHA512 d6c8abfc4fbef894310f4ad6250ddf269279bce13954ba6bc0147e0bf7e08f5a5e924ba079205881d6bf1dfe865e5f4389517d6d3bbafdede24ed328c549a991
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DREPROC++=ON
-DREPROC_INSTALL_PKGCONFIG=OFF
2020-01-10 06:34:22 +08:00
-DREPROC_INSTALL_CMAKECONFIGDIR=share
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
foreach(TARGET reproc reproc++)
vcpkg_cmake_config_fixup(
PACKAGE_NAME ${TARGET}
2020-01-10 06:34:22 +08:00
)
endforeach()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")