2020-07-14 04:43:39 +08:00
# vcpkg_fixup_pkgconfig
2021-03-11 01:56:07 +08:00
The latest version of this document lives in the [vcpkg repo ](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_fixup_pkgconfig.md ).
2021-03-01 05:17:19 +08:00
2020-07-14 04:43:39 +08:00
Fix common paths in *.pc files and make everything relativ to $(prefix)
## Usage
```cmake
vcpkg_fixup_pkgconfig(
[RELEASE_FILES < PATHS > ...]
[DEBUG_FILES < PATHS > ...]
2020-11-21 02:29:25 +08:00
[SKIP_CHECK]
2020-07-14 04:43:39 +08:00
)
```
## Parameters
### RELEASE_FILES
Specifies a list of files to apply the fixes for release paths.
Defaults to every *.pc file in the folder ${CURRENT_PACKAGES_DIR} without ${CURRENT_PACKAGES_DIR}/debug/
### DEBUG_FILES
Specifies a list of files to apply the fixes for debug paths.
Defaults to every *.pc file in the folder ${CURRENT_PACKAGES_DIR}/debug/
2020-12-08 10:17:19 +08:00
### SKIP_CHECK
Skips the library checks in vcpkg_fixup_pkgconfig. Only use if the script itself has unhandled cases.
2020-07-14 04:43:39 +08:00
2020-12-08 10:17:19 +08:00
### SYSTEM_PACKAGES (deprecated)
This argument has been deprecated and has no effect.
2020-07-14 04:43:39 +08:00
2020-12-08 10:17:19 +08:00
### SYSTEM_LIBRARIES (deprecated)
This argument has been deprecated and has no effect.
### IGNORE_FLAGS (deprecated)
This argument has been deprecated and has no effect.
2020-11-21 02:29:25 +08:00
2020-07-14 04:43:39 +08:00
## Notes
Still work in progress. If there are more cases which can be handled here feel free to add them
## Examples
2020-12-08 10:17:19 +08:00
* [brotli ](https://github.com/Microsoft/vcpkg/blob/master/ports/brotli/portfile.cmake )
2020-07-14 04:43:39 +08:00
## Source
2021-03-01 05:17:19 +08:00
[scripts/cmake/vcpkg\_fixup\_pkgconfig.cmake ](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_fixup_pkgconfig.cmake )