2019-10-05 22:51:07 +08:00
|
|
|
# vcpkg_configure_make
|
|
|
|
|
2019-12-23 22:10:12 +08:00
|
|
|
Configure configure for Debug and Release builds of a project.
|
2019-10-05 22:51:07 +08:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
```cmake
|
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH <${SOURCE_PATH}>
|
|
|
|
[AUTOCONFIG]
|
|
|
|
[NO_DEBUG]
|
2019-10-22 07:23:52 +08:00
|
|
|
[SKIP_CONFIGURE]
|
2019-10-05 22:51:07 +08:00
|
|
|
[PROJECT_SUBPATH <${PROJ_SUBPATH}>]
|
|
|
|
[PRERUN_SHELL <${SHELL_PATH}>]
|
|
|
|
[OPTIONS <-DUSE_THIS_IN_ALL_BUILDS=1>...]
|
|
|
|
[OPTIONS_RELEASE <-DOPTIMIZE=1>...]
|
|
|
|
[OPTIONS_DEBUG <-DDEBUGGABLE=1>...]
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
### SOURCE_PATH
|
|
|
|
Specifies the directory containing the `configure`/`configure.ac`.
|
|
|
|
By convention, this is usually set in the portfile as the variable `SOURCE_PATH`.
|
|
|
|
|
|
|
|
### PROJECT_SUBPATH
|
|
|
|
Specifies the directory containing the ``configure`/`configure.ac`.
|
|
|
|
By convention, this is usually set in the portfile as the variable `SOURCE_PATH`.
|
|
|
|
|
2019-10-22 07:23:52 +08:00
|
|
|
### SKIP_CONFIGURE
|
|
|
|
Skip configure process
|
|
|
|
|
2019-10-05 22:51:07 +08:00
|
|
|
### AUTOCONFIG
|
|
|
|
Need to use autoconfig to generate configure file.
|
|
|
|
|
|
|
|
### PRERUN_SHELL
|
2020-07-14 04:43:39 +08:00
|
|
|
Script that needs to be called before configuration (do not use for batch files which simply call autoconf or configure)
|
2019-10-05 22:51:07 +08:00
|
|
|
|
|
|
|
### OPTIONS
|
|
|
|
Additional options passed to configure during the configuration.
|
|
|
|
|
|
|
|
### OPTIONS_RELEASE
|
|
|
|
Additional options passed to configure during the Release configuration. These are in addition to `OPTIONS`.
|
|
|
|
|
|
|
|
### OPTIONS_DEBUG
|
|
|
|
Additional options passed to configure during the Debug configuration. These are in addition to `OPTIONS`.
|
|
|
|
|
|
|
|
## Notes
|
|
|
|
This command supplies many common arguments to configure. To see the full list, examine the source.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
* [x264](https://github.com/Microsoft/vcpkg/blob/master/ports/x264/portfile.cmake)
|
|
|
|
* [tcl](https://github.com/Microsoft/vcpkg/blob/master/ports/tcl/portfile.cmake)
|
|
|
|
* [freexl](https://github.com/Microsoft/vcpkg/blob/master/ports/freexl/portfile.cmake)
|
|
|
|
* [libosip2](https://github.com/Microsoft/vcpkg/blob/master/ports/libosip2/portfile.cmake)
|
|
|
|
|
|
|
|
## Source
|
|
|
|
[scripts/cmake/vcpkg_configure_make.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_configure_make.cmake)
|