vcpkg/ports/jsoncons/portfile.cmake

22 lines
702 B
CMake
Raw Normal View History

2019-04-12 15:40:25 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO danielaparker/jsoncons
REF ce0cc470bfe5e0e3adbe81330b809161bd80b81a # v0.152.0
SHA512 d94d8e8f173289409ce72894f3bb4c657d438ae4eafc1b09214cb85d05a419f2a2d660ab61cd3e81adc7d1c2f76575db98de7e0e9fd9303ef3416ee1149bad55
2019-04-12 15:40:25 +08:00
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)