You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5de51c4
Browse filesBrowse the repository at this point in the historyBrowse files
After you get the name of a library by using **`vcpkg search`**, you use **`vcpkg install`** to download the library and compile it. vcpkg uses the library's portfile in the *ports* directory. If a triplet isn't specified, vcpkg installs and compiles for the default triplet for the target platform: x86-windows, x64-linux.cmake, or x64-osx.cmake.
63
+
64
+
For Linux libraries, vcpkg depends on gcc being installed on the local machine. On macOS, vcpkg uses Clang.
65
+
66
+
When the portfile specifies dependencies, vcpkg downloads and installs them too. After downloading, vcpkg builds the library by using the same build system the library uses. CMake and (on Windows) MSBuild projects are preferred, but MAKE is supported along with any other build system. If vcpkg can't find the specified build system on the local machine, it downloads and installs it.
67
+
68
+
```cmd
69
+
> vcpkg install boost:x86-windows
70
+
71
+
The following packages will be built and installed:
72
+
boost:x86-windows
73
+
* bzip2:x86-windows
74
+
* zlib:x86-windows
75
+
Additional packages (*) will be installed to complete this operation.
76
+
```
77
+
78
+
For CMake projects, use `CMAKE_TOOLCHAIN_FILE` to make libraries available with `find_package()`. For example, on Linux or macOS:
Some libraries include installable options. For example, when you search for the curl library, you'll also see a list of supported options in square brackets:
After you get the name of a library by using **`vcpkg search`**, you use **`vcpkg install`** to download the library and compile it. vcpkg uses the library's portfile in the *ports* directory. If a triplet isn't specified, vcpkg installs and compiles for the default triplet for the target platform: x86-windows, x64-linux.cmake, or x64-osx.cmake.
97
-
98
-
For Linux libraries, vcpkg depends on gcc being installed on the local machine. On macOS, vcpkg uses Clang.
99
-
100
-
When the portfile specifies dependencies, vcpkg downloads and installs them too. After downloading, vcpkg builds the library by using the same build system the library uses. CMake and (on Windows) MSBuild projects are preferred, but MAKE is supported along with any other build system. If vcpkg can't find the specified build system on the local machine, it downloads and installs it.
101
-
102
-
```cmd
103
-
> vcpkg install boost:x86-windows
104
-
105
-
The following packages will be built and installed:
106
-
boost:x86-windows
107
-
* bzip2:x86-windows
108
-
* zlib:x86-windows
109
-
Additional packages (*) will be installed to complete this operation.
110
-
```
111
-
112
-
For CMake projects, use `CMAKE_TOOLCHAIN_FILE` to make libraries available with `find_package()`. For example, on Linux or macOS:
0 commit comments