mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 03:19:19 +08:00
e338d66dcd
Alternative to #36585 Fixes #22743 Fixes #34338 Fixes #34678 --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Cheney-Wang <850426846@qq.com> Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
25 lines
785 B
CMake
25 lines
785 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO pybind/pybind11
|
|
REF "v${VERSION}"
|
|
SHA512 c20247a4dccec310307174a26a79f9a98dd7ae7c84a48ad61c61589b02ef74caac26c2945de602cbe38b0bea65fc9985f1cc37f9e2322cae2f824dee98d602f1
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DPYBIND11_TEST=OFF
|
|
# Disable all Python searching, Python required only for tests
|
|
-DPYBIND11_NOPYTHON=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11")
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|