forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scripts-audit] vcpkg_fixup_pkgconfig (microsoft#19658)
* [scripts-audit] vcpkg_fixup_pkgconfig * Neumann-A CR, fix docs * vcpkg_fixup_pkgconfig bugs * fix group * moar fixing * be more clever around pkg_config_path * add `vcpkg_host_path_list` so that we can unit test * move stuff around a bit * fix bug in vcpkg_host_path_list.cmake * ras0219 CRs
- Loading branch information
1 parent
46700e2
commit f0281bf
Showing
9 changed files
with
563 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# vcpkg_host_path_list | ||
|
||
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_host_path_list.md). | ||
|
||
Modify a host path list variable (PATH, INCLUDE, LIBPATH, etc.) | ||
|
||
```cmake | ||
vcpkg_host_path_list(PREPEND <list-var> [<path>...]) | ||
vcpkg_host_path_list(APPEND <list-var> [<path>...]) | ||
``` | ||
|
||
`<list-var>` may be either a regular variable name, or `ENV{variable-name}`, | ||
in which case `vcpkg_host_path_list` will modify the environment. | ||
|
||
`vcpkg_host_path_list` adds all of the paths passed to it to `<list-var>`; | ||
`PREPEND` puts them before the existing list, so that they are searched first; | ||
`APPEND` places them after the existing list, | ||
so they would be searched after the paths which are already in the variable. | ||
|
||
For both `APPEND` and `PREPEND`, | ||
the paths are added (and thus searched) in the order received. | ||
|
||
If no paths are passed, then nothing will be done. | ||
|
||
## Source | ||
[scripts/cmake/vcpkg\_host\_path\_list.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_host_path_list.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.