vcpkg/ports/pybind11/portfile.cmake
chausner a0515706ef
[pybind11] Update to 2.8.0 (#20880)
* Update pybind11 to 2.8.0

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-10-21 23:51:19 -07:00

27 lines
745 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pybind/pybind11
REF v2.8.0
SHA512 2f066ab1a3d4a22513625f52b55d7722f953007876e800b4a08d6341b9ae70f73a3b0fd57f76cee443e7b8cf0eecdaafc032a23ddad2b8bca2c8108ac4090a82
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPYBIND11_TEST=OFF
-DPYBIND11_FINDPYTHON=ON
OPTIONS_RELEASE
-DPYTHON_IS_DEBUG=OFF
OPTIONS_DEBUG
-DPYTHON_IS_DEBUG=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/")
# copy license
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)