2023-11-23 06:40:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jeremy-rifkin/libassert
|
|
|
|
REF "v${VERSION}"
|
2023-11-29 17:09:30 +08:00
|
|
|
SHA512 beba94e033f7e43c84123736a32725a333c915392d5dc57c26a63f832a507564d79f290a151cb136de8bded3d8d343dad3c4bf2efec9977d878df3c9a8677554
|
2023-11-23 06:40:00 +08:00
|
|
|
HEAD_REF main
|
|
|
|
PATCHES
|
2024-02-15 15:01:53 +08:00
|
|
|
runtime_destination.patch
|
|
|
|
magic-enum.patch
|
|
|
|
include-dir.patch
|
2023-11-23 06:40:00 +08:00
|
|
|
)
|
|
|
|
|
2024-02-15 15:01:53 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
2023-11-23 06:40:00 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-02-15 15:01:53 +08:00
|
|
|
OPTIONS
|
|
|
|
-DASSERT_USE_EXTERNAL_CPPTRACE=ON
|
|
|
|
-DASSERT_STATIC=${BUILD_STATIC}
|
2023-11-23 06:40:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(
|
2024-02-15 15:01:53 +08:00
|
|
|
PACKAGE_NAME assert
|
|
|
|
CONFIG_PATH lib/cmake/assert
|
2023-11-23 06:40:00 +08:00
|
|
|
)
|
2024-02-15 15:01:53 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(APPEND "${CURRENT_PACKAGES_DIR}/share/assert/assert-config.cmake" "include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(magic_enum)
|
|
|
|
find_dependency(cpptrace)")
|
2023-11-23 06:40:00 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-02-15 15:01:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/assert/third_party")
|
2023-11-23 06:40:00 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|