mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 07:49:00 +08:00
a0515706ef
* Update pybind11 to 2.8.0 * Update CI baseline Co-authored-by: chausner <chausner@users.noreply.github.com>
27 lines
745 B
CMake
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)
|