mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 01:49:07 +08:00
385fb52332
* [vcpkg] Track hashes of cmake script helpers in consuming portfiles * [vcpkg] Format * [vcpkg_find_acquire_program] Use cpkg_from_sourceforge for FLEX and BISON Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
59 lines
1.9 KiB
Markdown
59 lines
1.9 KiB
Markdown
# vcpkg_configure_make
|
|
|
|
Configure configure for Debug and Release builds of a project.
|
|
|
|
## Usage
|
|
```cmake
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH <${SOURCE_PATH}>
|
|
[AUTOCONFIG]
|
|
[NO_DEBUG]
|
|
[SKIP_CONFIGURE]
|
|
[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`.
|
|
|
|
### SKIP_CONFIGURE
|
|
Skip configure process
|
|
|
|
### AUTOCONFIG
|
|
Need to use autoconfig to generate configure file.
|
|
|
|
### PRERUN_SHELL
|
|
Script that needs to be called before configuration (do not use for batch files which simply call autoconf or configure)
|
|
|
|
### 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)
|