mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 06:47:50 +08:00
34 lines
939 B
CMake
34 lines
939 B
CMake
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||
|
|
||
|
vcpkg_find_acquire_program(PKGCONFIG)
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO microsoft/mimalloc
|
||
|
REF "v${VERSION}"
|
||
|
SHA512 927b046e67783b325a6e41e3a9a6d3d78306fa1c82255defd1f3a7a60a27fd809a601f65b1b27fa38f2064e124f29856d7c0e5ccc33c54c2e4b6ebb9816d74b1
|
||
|
HEAD_REF master
|
||
|
PATCHES
|
||
|
vcpkg-tests.patch
|
||
|
)
|
||
|
# Ensure that the test uses the installed mimalloc only
|
||
|
file(REMOVE_RECURSE
|
||
|
"${SOURCE_PATH}/bin"
|
||
|
"${SOURCE_PATH}/include"
|
||
|
"${SOURCE_PATH}/src"
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}/test"
|
||
|
OPTIONS
|
||
|
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
||
|
"-DVCPKG_TESTS=${CURRENT_PORT_DIR}/vcpkg-tests.cmake"
|
||
|
)
|
||
|
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
||
|
|
||
|
vcpkg_copy_tools(TOOL_NAMES pkgconfig-override-cxx AUTO_CLEAN)
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||
|
|
||
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|