2021-04-02 01:37:58 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Maratyszcza/pthreadpool
|
2021-05-01 02:14:18 +08:00
|
|
|
REF 052e441b70091656199e2283fb1c16a7db6f0f85 # there is a too much gap from the last release...
|
|
|
|
SHA512 33be676e65719ae8510ec4e8254809033528802681870f8c91b083ce4006e5f630b80207a7e675464b406a785cb45bc74628996ea4817c02816b7b58ddf3a2bc
|
2021-04-02 01:37:58 +08:00
|
|
|
PATCHES
|
|
|
|
fix-cmakelists.patch
|
2021-05-01 02:14:18 +08:00
|
|
|
fix-uwp.patch
|
2021-04-02 01:37:58 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DPTHREADPOOL_BUILD_TESTS=OFF
|
|
|
|
-DPTHREADPOOL_BUILD_BENCHMARKS=OFF
|
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2021-05-01 02:14:18 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
|
2021-04-02 01:37:58 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|