vcpkg/ports/libnick/portfile.cmake
Nick Logozzo fc5db693f4
[libnick] update to 2024.2.4 (#36760)
* [libnick] update to 2024.2.4

* update versions
2024-02-14 23:03:37 -08:00

33 lines
905 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 f71c5e9b0dd949033a46382a594b9b155ae54571c483973a4157669233f8ee73a9fc13cdbb5ab7b0dea17d48f3926146a412cb230a2b7f6194dc4c451900d90f
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")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)