2021-01-08 21:01:00 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO foonathan/debug_assert
|
2024-09-18 06:35:10 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 0cc2f301e5f604501d29bab0e05ab9b667c1e0160003fc26da4f3edf747c761ff6d409cacc6bbe7fb15cd5caf9d3175fd4e88c0b066e659b41966916fab45ba8
|
2021-01-08 21:01:00 +01:00
|
|
|
HEAD_REF v1.3.3
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-08 21:01:00 +01:00
|
|
|
OPTIONS
|
|
|
|
-DDEBUG_ASSERT_INSTALL=ON
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-01-08 21:01:00 +01:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/debug_assert PACKAGE_NAME debug_assert)
|
2021-01-08 21:01:00 +01:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2021-01-08 21:01:00 +01:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|