vcpkg/ports/reproc/portfile.cmake

34 lines
852 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DaanDeMeyer/reproc
REF 62dd002f8bd85e369d5a02e3adb49f5b894d344d # v11.0.1
SHA512 d6d8cb53ab38c0f4c9a9add1068ef09f96674f8f64a6d1fc65cfc5790063570f6da2b8b80988785d5daa3640cde27949ab474bbc6f2cf7587f79c017ed43c621
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
2020-01-10 06:34:22 +08:00
-DREPROCXX=ON
-DREPROC_INSTALL_PKGCONFIG=OFF
2020-01-10 06:34:22 +08:00
-DREPROC_INSTALL_CMAKECONFIGDIR=share
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
2020-01-10 06:34:22 +08:00
foreach(TARGET reproc reprocxx)
vcpkg_fixup_cmake_targets(
CONFIG_PATH share/${TARGET}
TARGET_PATH share/${TARGET}
)
endforeach()
file(
INSTALL ${SOURCE_PATH}/LICENSE
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright
)