From a4cee36b6f846bcb07ae6a6d60a2e9d6670607b6 Mon Sep 17 00:00:00 2001 From: Griffin Downs <35574547+grdowns@users.noreply.github.com> Date: Wed, 16 Sep 2020 05:07:06 -0700 Subject: [PATCH] Add vcpkg installation instructions (#1936) * Add vcpkg installation instructions * Casing * Move instructions Co-authored-by: Henry Fredrick Schreiner --- docs/compiling.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/compiling.rst b/docs/compiling.rst index ca4dc756e..b924b85bc 100644 --- a/docs/compiling.rst +++ b/docs/compiling.rst @@ -391,6 +391,25 @@ build system that works on all platforms including Windows. of possibly importing a second Python library into a process that already contains one (which will lead to a segfault). + +Building with vcpkg +=================== +You can download and install pybind11 using the Microsoft `vcpkg +`_ dependency manager: + +.. code-block:: bash + + git clone https://github.com/Microsoft/vcpkg.git + cd vcpkg + ./bootstrap-vcpkg.sh + ./vcpkg integrate install + vcpkg install pybind11 + +The pybind11 port in vcpkg is kept up to date by Microsoft team members and +community contributors. If the version is out of date, please `create an issue +or pull request `_ on the vcpkg +repository. + Generating binding code automatically =====================================