2017-06-14 14:43:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pybind/pybind11
|
2023-03-01 08:28:32 +08:00
|
|
|
REF "v${VERSION}"
|
2023-08-19 02:32:26 +08:00
|
|
|
SHA512 ed1512ff0bca3bc0a45edc2eb8c77f8286ab9389f6ff1d5cb309be24bc608abbe0df6a7f5cb18c8f80a3bfa509058547c13551c3cd6a759af708fd0cdcdd9e95
|
2017-06-14 14:43:15 +08:00
|
|
|
HEAD_REF master
|
2023-07-15 07:37:14 +08:00
|
|
|
PATCHES
|
|
|
|
fix-debug-link.patch
|
2017-03-27 14:09:39 +08:00
|
|
|
)
|
2017-06-14 14:43:15 +08:00
|
|
|
|
2021-08-10 16:00:44 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-06-14 14:43:15 +08:00
|
|
|
OPTIONS
|
|
|
|
-DPYBIND11_TEST=OFF
|
2023-07-11 01:52:11 +08:00
|
|
|
# Disable all Python searching, Python required only for tests
|
|
|
|
-DPYBIND11_NOPYTHON=ON
|
2017-03-27 14:09:39 +08:00
|
|
|
)
|
|
|
|
|
2021-08-10 16:00:44 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11")
|
2023-03-01 08:28:32 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-03-27 14:09:39 +08:00
|
|
|
|
2021-08-10 16:00:44 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/")
|
2017-03-27 14:09:39 +08:00
|
|
|
|
2023-07-11 01:52:11 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-03-02 04:51:42 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|