mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 10:29:03 +08:00
03ecabfe1a
* [vcpkg baseline] Fix ncurses linux build * version * fix homepage * version * [libgnutls] Fix build on Linux * version * [pcapplusplus] Re-factory build system, use cmake instead. * version * version * Update ports/ncurses/vcpkg.json * Update versions/n-/ncurses.json
23 lines
728 B
CMake
23 lines
728 B
CMake
if (VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO seladb/PcapPlusPlus
|
|
REF v21.11
|
|
SHA512 ad10034950c0c3e6a4638e8b314c8983ce42609948d7d8d40ad0ff678820a2469807bd29aff77e657a150008602475b50cea84a0766ad87ea203985519cb38ac
|
|
HEAD_REF master
|
|
)
|
|
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright") |