aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcds/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libcds/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libcds/portfile.cmake')
-rw-r--r--vcpkg/ports/libcds/portfile.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/libcds/portfile.cmake b/vcpkg/ports/libcds/portfile.cmake
new file mode 100644
index 0000000..481d9d1
--- /dev/null
+++ b/vcpkg/ports/libcds/portfile.cmake
@@ -0,0 +1,35 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO khizmax/libcds
+ REF v2.3.3
+ SHA512 95e67da4336d622d47bdf124d76827ca3e82e65ab5f725ccf58c2d7957960e7d17ee1ebb2126eed70f7a3ca1c97f840d9f59c1ae2eb80215d10abf70b215e510
+ HEAD_REF master
+ PATCHES
+ 001-cmake-install.patch
+ 002-lib-suffix-option.patch
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DISABLE_INSTALL_STATIC)
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_INSTALL_SHARED)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DENABLE_UNIT_TEST=OFF
+ -DENABLE_STRESS_TEST=OFF
+ -DDISABLE_INSTALL_STATIC=${DISABLE_INSTALL_STATIC}
+ -DDISABLE_INSTALL_SHARED=${DISABLE_INSTALL_SHARED}
+ "-DLIB_SUFFIX="
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/LibCDS)
+
+file(INSTALL
+ "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+vcpkg_copy_pdbs()