vcpkg/ports/libnick/portfile.cmake
Nick Logozzo 8100a2d0a1
[libnick] Update to 2024.1.5 (#36169)
* V2024.1.5

* Update versions
2024-01-16 10:52:35 -08:00

32 lines
846 B
CMake

if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO NickvisionApps/libnick
REF "${VERSION}"
SHA512 87e26a45de6f32f476b174d007f71199302ef8a0884c1067ed679b52a0665f86d99bb8d23d7725a00d7055db0db944ed738e3d5e59d3d8eed2e57fc648ab0deb
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libnick)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)