2023-11-23 06:40:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jeremy-rifkin/libassert
|
|
|
|
REF "v${VERSION}"
|
2024-06-04 13:08:45 +08:00
|
|
|
SHA512 2d4b49811c78f24783fe2cf96fd0ba43712097bbd1982815c1255378add4f101f788128c0e05b2274d420a5fb46d7cfecf57846fef26a3d5088ed7309019dcab
|
2023-11-23 06:40:00 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
2024-03-19 05:39:31 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
2023-11-23 06:40:00 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-02-15 15:01:53 +08:00
|
|
|
OPTIONS
|
2024-03-19 05:39:31 +08:00
|
|
|
-DLIBASSERT_USE_EXTERNAL_CPPTRACE=ON
|
|
|
|
-DLIBASSERT_USE_EXTERNAL_MAGIC_ENUM=ON
|
|
|
|
-DLIBASSERT_BUILD_SHARED=${BUILD_SHARED}
|
2023-11-23 06:40:00 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(
|
2024-03-19 05:39:31 +08:00
|
|
|
PACKAGE_NAME libassert
|
|
|
|
CONFIG_PATH lib/cmake/libassert
|
2023-11-23 06:40:00 +08:00
|
|
|
)
|
2024-02-15 15:01:53 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2024-03-19 05:39:31 +08:00
|
|
|
file(APPEND "${CURRENT_PACKAGES_DIR}/share/libassert/libassert-config.cmake" "find_dependency(magic_enum)")
|
2023-11-23 06:40:00 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|