From 63d227a9aa32919f28f2245f182fa02418eb36aa Mon Sep 17 00:00:00 2001 From: Jonliu1993 <13720414433@163.com> Date: Fri, 9 Sep 2022 16:33:20 +0800 Subject: [PATCH 1/2] Add vcpkg installation instructions --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index cf9a5ba4..67d45d2e 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,18 @@ make edit_cache For more info read: [The CMake Cache](https://cmake.org/cmake/help/latest/guide/user-interaction/index.html#the-cmake-cache). +## Building s2geometry - Using vcpkg + +You can download and install s2geometry using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager: + + git clone https://github.com/Microsoft/vcpkg.git + cd vcpkg + ./bootstrap-vcpkg.sh + ./vcpkg integrate install + ./vcpkg install s2geometry + +The s2geometry 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](https://github.com/Microsoft/vcpkg) on the vcpkg repository. + ## Python If you want the Python interface, you need to run cmake using From 1eae1ce8ed3e8c677eea35c788e20b186a76710c Mon Sep 17 00:00:00 2001 From: Jonliu1993 <13720414433@163.com> Date: Wed, 14 Sep 2022 17:27:55 +0800 Subject: [PATCH 2/2] Apply the suggesstion --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67d45d2e..55a07621 100644 --- a/README.md +++ b/README.md @@ -149,13 +149,18 @@ For more info read: [The CMake Cache](https://cmake.org/cmake/help/latest/guide/ You can download and install s2geometry using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager: +``` git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install s2geometry +``` -The s2geometry 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](https://github.com/Microsoft/vcpkg) on the vcpkg repository. +The s2geometry 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](https://github.com/Microsoft/vcpkg) on the +vcpkg repository. ## Python