vcpkg/ports/bdwgc/portfile.cmake
Jia Yue Hua 2d2be09721
[bdwgc] update to 8.2.6 ()
* [bdwgc] update to 8.2.6

* [bdwgc] update to 8.2.6
2024-02-05 11:20:38 -08:00

27 lines
816 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ivmai/bdwgc
REF "v${VERSION}"
SHA512 764ab0c0f29a30ba0d55c8f1f6e267ab3190e8bcb96b7a31f2488f3936c6e0d08020a329dd296cf7d491ba8d4158fa73df6a6d2b4242526535a732f20c3f1bd0
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Denable_cplusplus=ON
-Denable_docs=OFF
-DCFLAGS_EXTRA=-I${CURRENT_INSTALLED_DIR}/include # for libatomic_ops
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/bdwgc)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/README.QUICK" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)