2017-06-14 14:43:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pybind/pybind11
|
2021-05-18 15:41:51 +08:00
|
|
|
REF 8de7772cc72daca8e947b79b83fea46214931604 # v2.6.2
|
|
|
|
SHA512 9bb688209791bd5f294fa316ab9a8007f559673a733b796e76e223fe8653d048d3f01eb045b78aa1843f7eacf97f6e2ee090ac68fed2b43856eb0c4813583204
|
2017-06-14 14:43:15 +08:00
|
|
|
HEAD_REF master
|
2017-03-27 14:09:39 +08:00
|
|
|
)
|
2017-06-14 14:43:15 +08:00
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
2017-03-27 14:09:39 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2017-06-14 14:43:15 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DPYBIND11_TEST=OFF
|
2021-01-06 05:39:53 +08:00
|
|
|
-DPYBIND11_FINDPYTHON=ON
|
|
|
|
-DPython3_EXECUTABLE=${PYTHON3}
|
2017-06-14 14:43:15 +08:00
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DPYTHON_IS_DEBUG=OFF
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DPYTHON_IS_DEBUG=ON
|
2017-03-27 14:09:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2020-09-12 03:48:28 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/pybind11)
|
2017-03-27 14:09:39 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/)
|
|
|
|
|
|
|
|
# copy license
|
2020-07-14 02:04:14 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|