vcpkg/ports/mongoose/portfile.cmake
Vitalii Koshura c961349ace
[mongoose] update to 7.8 (#29005)
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-01-18 13:28:32 -08:00

31 lines
872 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cesanta/mongoose
REF 7.8
SHA512 6862d2db7eb424b9a4fe39a6de1c1ff992dbafe05796caab716dee484728dc5591473fb0e083a8cfdf3dddd04694be6d459f915471e708cfb0f693b705cddcc0
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
ssl ENABLE_SSL
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)