vcpkg/ports/json-dto/portfile.cmake
eao197 d988e4ee20
[json-dto] Update to 0.2.14 (#20570)
* json-dto updated to v.0.2.14.

* json-dto-0.2.14 added to baseline.

* Change deprecated commands.

* Update baseline for fresh json-dto-0.2.14.
2021-10-07 03:30:31 -07:00

26 lines
769 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stiffstream/json_dto
REF ea2786711187d6301df9d5a2deb6974f05c5ef44 # v.0.2.14
SHA512 6c8a664148e65e347cd793f4f03be4d01612691cc4a69a4f84b906e582ea50a42db606c04e33cedb431f4ac45bf112460f109ab581ff2f34e97c2257534b9b40
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/dev
OPTIONS
-DJSON_DTO_INSTALL=ON
-DJSON_DTO_TEST=OFF
-DJSON_DTO_SAMPLE=OFF
-DJSON_DTO_INSTALL_SAMPLES=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/json-dto)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)