vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO pybind/pybind11 REF "v${VERSION}" SHA512 497C25B33B09A9C42F67131AB82E35D689E8CE089DD7639BE997305FF9A6D502447B79C824508C455D559E61F0186335B54DD2771D903A7C1621833930622D1A HEAD_REF master ) vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DPYBIND11_TEST=OFF # Disable all Python searching, Python required only for tests -DPYBIND11_NOPYTHON=ON ) vcpkg_cmake_install() vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/pybind11") vcpkg_fixup_pkgconfig() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")