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 5a52f1fc732f2dccd23496ad4c096b61e8735759 # v0.156.1
SHA512 8616a7ec5167a1051d6b6ca43faccaaa05c26976061f0034777b115dd6b7560650b32d14e41ba0b3209a6b999e191b62da514133cc043e145d3d0b647c49cab5
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)