mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 10:59:07 +08:00
31 lines
909 B
CMake
31 lines
909 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jeremy-rifkin/libassert
|
|
REF "v${VERSION}"
|
|
SHA512 35fdf48cc157e0f269ccae66f9d000d3a1e01bdd8a23d04e1a0ddc9e6c962c6507702bb3494cbc4d06d59f1af27e1c053f8ae3167c2ae9efd2644df505058175
|
|
HEAD_REF main
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DLIBASSERT_USE_EXTERNAL_CPPTRACE=ON
|
|
-DLIBASSERT_USE_EXTERNAL_MAGIC_ENUM=ON
|
|
-DLIBASSERT_BUILD_SHARED=${BUILD_SHARED}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME libassert
|
|
CONFIG_PATH lib/cmake/libassert
|
|
)
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(APPEND "${CURRENT_PACKAGES_DIR}/share/libassert/libassert-config.cmake" "find_dependency(magic_enum)")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|