From 31a4b8522ae1bc3512c0a7e1c0f1d8e00b0dbd63 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 May 2022 15:55:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/installing.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/installing.rst b/docs/installing.rst index bf1fcfa55..f22c0c547 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -84,10 +84,10 @@ repository. Include with CMake/Hunter ================== -If you are already using CMake you can include pybind11 using Hunter. -If you are not already using Hunter, download -`HunterGate `_ to a -directory in your repo (generally *cmake/HunterGate.cmake*). Then include it +If you are already using CMake you can include pybind11 using Hunter. +If you are not already using Hunter, download +`HunterGate `_ to a +directory in your repo (generally *cmake/HunterGate.cmake*). Then include it in you CMakeLists file with: .. code-block:: cmake @@ -102,21 +102,21 @@ Select a `hunter release `_, example URL "https://github.com/cpp-pm/hunter/archive/v0.24.2.tar.gz" SHA1 "17fd3b9f0b8c271eac9b71e30a6aa1b9fecab299" ) - + Make sure to include the above before your **project({project name})** declaration. Now just add pybind11 with the following: .. code-block:: cmake - + hunter_add_package(pybind11) find_package(pybind11 CONFIG REQUIRED) add_executable(main main.cpp) #or add_library(...) - target_link_libraries(main + target_link_libraries(main {other libs} - pybind11::pybind11 - pybind11::embed + pybind11::pybind11 + pybind11::embed pybind11::module )