From 876e67c26e42c0c7d2daa41c6871af117ae6bec5 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Thu, 24 Jun 2021 00:30:46 +0200 Subject: [vcpkg.cmake] PREPEND CMAKE_FIND_ROOT_PATH (#17336) * [vcpkg.cmake] PREPEND CMAKE_FIND_ROOT_PATH * [vcpkg.cmake] make PREPEND optional (default off, option VCPKG_PREFER_VCPKG_LIBS) * Apply suggestions from code review Co-authored-by: nicole mazzuca * Update scripts/buildsystems/vcpkg.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> Co-authored-by: nicole mazzuca --- docs/users/manifests.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/users') diff --git a/docs/users/manifests.md b/docs/users/manifests.md index 6d94cd40c..ae0ee7eed 100644 --- a/docs/users/manifests.md +++ b/docs/users/manifests.md @@ -425,6 +425,12 @@ Defaults to `OFF`. This variable can be set to a list of additional command line parameters to pass to the vcpkg tool during automatic installation. +#### `VCPKG_PREFER_SYSTEM_LIBS` + +This variable controls whether vcpkg will appends instead of prepends its paths to `CMAKE_PREFIX_PATH`, `CMAKE_LIBRARY_PATH` and `CMAKE_FIND_ROOT_PATH` so that vcpkg libraries/packages are found after toolchain/system libraries/packages. + +Defaults to `OFF`. + #### `VCPKG_FEATURE_FLAGS` This variable can be set to a list of feature flags to pass to the vcpkg tool during automatic installation to opt-in to -- cgit v1.2.3