mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
2cb6ec989f
* Initial work to add 0.3.0 * Bump * Bump hash * Bump * Bump hash * Bump * Bump * Bump * More changes * Bump * Bump hash * Bump * Add an option * Cleanup * Bump * Set to 0.3.0 * Bump * Suggestions from dg0yt * Bump * Bump tag hash * Bump git tree * Delete patch from merge * Bump * Try to fix libassert build * Bump * Try again * Bump * Undo attempts to set cpptrace version for libassert * Bump * Add libassert 1.2.2 * Update libassert's vcpkg.json * Bump * Forgot to update SHA, also remove a patch that's not needed * Bump * Add patch for cpptrace::nullable * Bump
30 lines
789 B
CMake
30 lines
789 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jeremy-rifkin/libassert
|
|
REF "v${VERSION}"
|
|
SHA512 beba94e033f7e43c84123736a32725a333c915392d5dc57c26a63f832a507564d79f290a151cb136de8bded3d8d343dad3c4bf2efec9977d878df3c9a8677554
|
|
HEAD_REF main
|
|
PATCHES
|
|
runtime_destination.patch
|
|
)
|
|
|
|
vcpkg_list(SET options -DASSERT_USE_EXTERNAL_CPPTRACE=On)
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
vcpkg_list(APPEND options -DASSERT_STATIC=On)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${options}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME "libassert"
|
|
CONFIG_PATH "lib/cmake/assert"
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|