mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 13:17:55 +08:00
37 lines
942 B
CMake
37 lines
942 B
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO ada-url/ada
|
||
|
REF "v${VERSION}"
|
||
|
SHA512 689dcdc3e89f2ae51e039f6d354efea3231d3ff025c58f572596d87cebd7d5f2bf5ca8c530df8514369a14831dfdb1c65bc1d93a0ece579031eb3f0dd47548c0
|
||
|
HEAD_REF main
|
||
|
)
|
||
|
|
||
|
vcpkg_check_features(
|
||
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||
|
FEATURES
|
||
|
tools ADA_TOOLS
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
DISABLE_PARALLEL_CONFIGURE
|
||
|
OPTIONS
|
||
|
-DADA_BENCHMARKS=OFF
|
||
|
-DBUILD_TESTING=OFF
|
||
|
${FEATURE_OPTIONS}
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
vcpkg_copy_pdbs()
|
||
|
|
||
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ada CONFIG_PATH "lib/cmake/ada")
|
||
|
|
||
|
if("tools" IN_LIST FEATURES)
|
||
|
vcpkg_copy_tools(TOOL_NAMES adaparse AUTO_CLEAN)
|
||
|
endif()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
|
||
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE" "${SOURCE_PATH}/LICENSE-MIT")
|