2018-02-28 01:42:50 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO khizmax/libcds
|
2019-03-15 06:41:16 +08:00
|
|
|
REF v2.3.3
|
|
|
|
SHA512 95e67da4336d622d47bdf124d76827ca3e82e65ab5f725ccf58c2d7957960e7d17ee1ebb2126eed70f7a3ca1c97f840d9f59c1ae2eb80215d10abf70b215e510
|
2018-02-28 01:42:50 +08:00
|
|
|
HEAD_REF master
|
2018-03-12 14:41:51 +08:00
|
|
|
PATCHES
|
2019-03-15 06:41:16 +08:00
|
|
|
001-cmake-install.patch
|
|
|
|
002-lib-suffix-option.patch
|
2018-02-28 01:42:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DISABLE_INSTALL_STATIC)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_INSTALL_SHARED)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-02-28 01:42:50 +08:00
|
|
|
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}
|
2018-03-12 14:41:51 +08:00
|
|
|
"-DLIB_SUFFIX="
|
2018-02-28 01:42:50 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-02-28 01:42:50 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/LibCDS)
|
2018-02-28 01:42:50 +08:00
|
|
|
|
|
|
|
file(INSTALL
|
|
|
|
${SOURCE_PATH}/LICENSE
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcds RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|