vcpkg/ports/pybind11/portfile.cmake

25 lines
785 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pybind/pybind11
2023-03-01 08:28:32 +08:00
REF "v${VERSION}"
2024-06-27 11:17:54 +08:00
SHA512 6b7a1125b2374622af5e486dcaa3a5cc2b8fbd970e818233ce44daa15e18877a8118d47ccd2f34b8e1ed9a2175545aead517e39c8b7baad3cf64b6e5ab09997a
HEAD_REF master
2017-03-27 14:09:39 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPYBIND11_TEST=OFF
# Disable all Python searching, Python required only for tests
-DPYBIND11_NOPYTHON=ON
2017-03-27 14:09:39 +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
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/")
2017-03-27 14:09:39 +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")