diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dp-thread-pool/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/dp-thread-pool/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/dp-thread-pool/portfile.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/dp-thread-pool/portfile.cmake b/vcpkg/ports/dp-thread-pool/portfile.cmake new file mode 100644 index 0000000..390c2d0 --- /dev/null +++ b/vcpkg/ports/dp-thread-pool/portfile.cmake @@ -0,0 +1,31 @@ +set(VCPKG_BUILD_TYPE release)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO DeveloperPaul123/thread-pool
+ REF ${VERSION}
+ SHA512 c2a75117f7def0dacc2679f8eb70835acfba58d1aba7beec9bf0a29cdb23883222294dc4b04b77e323f8ecb8623b70d728bee46bf2c5a4fd6711a749c9709981
+ HEAD_REF master
+ PATCHES
+ include.diff
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DTP_BUILD_TESTS=OFF
+ -DTP_BUILD_EXAMPLES=OFF
+ -DTP_BUILD_BENCHMARKS=OFF
+ -DTP_CXX_STANDARD=20
+)
+
+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")
|