vcpkg/ports/jsoncons/portfile.cmake

26 lines
725 B
CMake
Raw Normal View History

# header-only library
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
2019-04-12 15:40:25 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO danielaparker/jsoncons
REF v${VERSION}
2023-10-03 12:11:19 +08:00
SHA512 6cfe09f0464f3212017fa96e25772397cd849e91b7d08ff0b685bbee1884003d974ebc244b0cbc5f643215b0168c2e9d93496790a38fb9496b1c1ae86c610522
2019-04-12 15:40:25 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-04-12 15:40:25 +08:00
OPTIONS
-DJSONCONS_BUILD_TESTS=OFF
2019-04-12 15:40:25 +08:00
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_fixup_pkgconfig()
2019-04-12 15:40:25 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")