mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 02:57:49 +08:00
29 lines
738 B
CMake
29 lines
738 B
CMake
|
set(VCPKG_BUILD_TYPE release)
|
||
|
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO DeveloperPaul123/thread-pool
|
||
|
REF ${VERSION}
|
||
|
SHA512 fccd39616f7961fbd4ff6c2f845b4d1494e50a85e44d1799c30308bdee0b2e13f55011c5a535a555857a91157a7dddf4ec38e1020f693ae33bf0977d8fb97451
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
OPTIONS
|
||
|
-DTP_BUILD_TESTS=OFF
|
||
|
-DTP_BUILD_EXAMPLES=OFF
|
||
|
-DTP_BUILD_BENCHMARKS=OFF
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
vcpkg_cmake_config_fixup(
|
||
|
PACKAGE_NAME thread-pool
|
||
|
CONFIG_PATH lib/cmake/thread-pool-${VERSION}
|
||
|
)
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||
|
|
||
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|