3 The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_configure_make.md).
5 Configure configure for Debug and Release builds of a project.
10 SOURCE_PATH <${SOURCE_PATH}>
13 [DETERMINE_BUILD_TRIPLET]
14 [BUILD_TRIPLET "--host=x64 --build=i686-unknown-pc"]
16 [CONFIG_DEPENDENT_ENVIRONMENT <SOME_VAR>...]
17 [CONFIGURE_ENVIRONMENT_VARIABLES <SOME_ENVVAR>...]
21 [PROJECT_SUBPATH <${PROJ_SUBPATH}>]
22 [PRERUN_SHELL <${SHELL_PATH}>]
23 [OPTIONS <-DUSE_THIS_IN_ALL_BUILDS=1>...]
24 [OPTIONS_RELEASE <-DOPTIMIZE=1>...]
25 [OPTIONS_DEBUG <-DDEBUGGABLE=1>...]
31 Specifies the directory containing the `configure`/`configure.ac`.
32 By convention, this is usually set in the portfile as the variable `SOURCE_PATH`.
35 Specifies the directory containing the ``configure`/`configure.ac`.
36 By convention, this is usually set in the portfile as the variable `SOURCE_PATH`.
39 Skip configure process
42 Use autotools ar-lib and compile wrappers (only applies to windows cl and lib)
45 Used to pass custom --build/--target/--host to configure. Can be globally overwritten by VCPKG_MAKE_BUILD_TRIPLET
47 ### DETERMINE_BUILD_TRIPLET
48 For ports having a configure script following the autotools rules for selecting the triplet
50 ### NO_ADDITIONAL_PATHS
51 Don't pass any additional paths except for --prefix to the configure call
54 Need to use autoconfig to generate configure file.
57 Script that needs to be called before configuration (do not use for batch files which simply call autoconf or configure)
60 Adds the appropriate Release and Debug `bin\` directories to the path during configure such that executables can run against the in-tree DLLs.
62 ## DISABLE_VERBOSE_FLAGS
63 do not pass '--disable-silent-rules --verbose' to configure
66 Additional options passed to configure during the configuration.
69 Additional options passed to configure during the Release configuration. These are in addition to `OPTIONS`.
72 Additional options passed to configure during the Debug configuration. These are in addition to `OPTIONS`.
74 ### CONFIG_DEPENDENT_ENVIRONMENT
75 List of additional configuration dependent environment variables to set.
76 Pass SOMEVAR to set the environment and have SOMEVAR_(DEBUG|RELEASE) set in the portfile to the appropriate values
77 General environment variables can be set from within the portfile itself.
79 ### CONFIGURE_ENVIRONMENT_VARIABLES
80 List of additional environment variables to pass via the configure call.
83 This command supplies many common arguments to configure. To see the full list, examine the source.
87 * [x264](https://github.com/Microsoft/vcpkg/blob/master/ports/x264/portfile.cmake)
88 * [tcl](https://github.com/Microsoft/vcpkg/blob/master/ports/tcl/portfile.cmake)
89 * [freexl](https://github.com/Microsoft/vcpkg/blob/master/ports/freexl/portfile.cmake)
90 * [libosip2](https://github.com/Microsoft/vcpkg/blob/master/ports/libosip2/portfile.cmake)
93 [scripts/cmake/vcpkg\_configure\_make.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_configure_make.cmake)