2020-02-12 15:58:43 -08:00
# vcpkg_configure_meson
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_configure_meson.md ).
2021-02-28 13:17:19 -08:00
2020-02-12 15:58:43 -08:00
Configure Meson for Debug and Release builds of a project.
## Usage
```cmake
vcpkg_configure_meson(
SOURCE_PATH < ${SOURCE_PATH}>
2021-09-24 21:11:38 +02:00
[NO_PKG_CONFIG]
2020-02-12 15:58:43 -08:00
[OPTIONS < -DUSE_THIS_IN_ALL_BUILDS = 1 > ...]
[OPTIONS_RELEASE < -DOPTIMIZE = 1 > ...]
[OPTIONS_DEBUG < -DDEBUGGABLE = 1 > ...]
)
```
## Parameters
### SOURCE_PATH
Specifies the directory containing the `meson.build` .
By convention, this is usually set in the portfile as the variable `SOURCE_PATH` .
### OPTIONS
Additional options passed to Meson during the configuration.
### OPTIONS_RELEASE
Additional options passed to Meson during the Release configuration. These are in addition to `OPTIONS` .
### OPTIONS_DEBUG
Additional options passed to Meson during the Debug configuration. These are in addition to `OPTIONS` .
2021-09-24 21:11:38 +02:00
### NO_PKG_CONFIG
Disable pkg-config setup
2020-02-12 15:58:43 -08:00
## Notes
This command supplies many common arguments to Meson. To see the full list, examine the source.
## Examples
* [fribidi ](https://github.com/Microsoft/vcpkg/blob/master/ports/fribidi/portfile.cmake )
* [libepoxy ](https://github.com/Microsoft/vcpkg/blob/master/ports/libepoxy/portfile.cmake )
## Source
2021-02-28 13:17:19 -08:00
[scripts/cmake/vcpkg\_configure\_meson.cmake ](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_configure_meson.cmake )