vcpkg/ports/valijson/portfile.cmake

24 lines
648 B
CMake
Raw Permalink Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
2019-05-09 04:32:57 +08:00
REPO tristanpenman/valijson
2024-04-04 07:17:14 +08:00
REF "v${VERSION}"
SHA512 c1141e533d6a791a01883c5b7ab9501eebc39057a850d784670a4bcf99bff3fee4c3120107128dcaa9db0505adf2ae794700620c02163b3e636f0b635031df80
2019-05-09 04:32:57 +08:00
HEAD_REF master
)
set(VCPKG_BUILD_TYPE release) # headers only
2019-05-09 04:32:57 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dvalijson_BUILD_TESTS:BOOL=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/valijson")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
2019-05-09 04:32:57 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug/lib")