The latest version of this document lives in the vcpkg repo.
Build and install a cmake project.
vcpkg_cmake_install(
[DISABLE_PARALLEL]
[ADD_BIN_TO_PATH]
)
To use this function, you must depend on the helper port vcpkg-cmake
:
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
Disables running the build in parallel.
By default builds are run with up to VCPKG_MAX_CONCURRENCY jobs. This option limits the build to a single job and should be used only if the underlying build is unable to run correctly with concurrency.
Adds the configuration-specific bin/
directory to the PATH
during the build.
When building for a Windows dynamic triplet, newly built executables may not be immediately executable because their dependency DLLs may not be findable from the build environment. This flag instructs vcpkg to add any additional paths needed to locate those dependency DLLs to the PATH
environment variable. This is required if the project needs to execute newly built binaries as part of the build (such as to generate code).
vcpkg_from_github(OUT_SOURCE_PATH source_path ...)
vcpkg_cmake_configure(SOURCE_PATH "${source_path}")
vcpkg_cmake_install()
Search microsoft/vcpkg for Examples
This command replaces vcpkg_install_cmake()
.