2017-06-14 14:43:15 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pybind/pybind11
|
2022-02-16 12:26:20 +08:00
|
|
|
REF v2.9.1
|
|
|
|
SHA512 1f268cc6df1f572658bfc3e60f7f010bec9b9444d6a6d6c95f7b26f7b4b7dd42846e65ae5a611c01c0341335fdfa84b01272b5c1b2cc11a418f64fecabfa0588
|
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
|
|
|
|
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
|
2021-01-06 05:39:53 +08:00
|
|
|
-DPYBIND11_FINDPYTHON=ON
|
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
|
|
|
)
|
|
|
|
|
2021-08-10 16:00:44 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11")
|
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
|
|
|
|
|
|
|
# copy license
|
2021-08-10 16:00:44 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|