vcpkg/docs/maintainers/vcpkg_build_make.md
Kai Pastor 5a271a9290
[doc] Fix spelling errors (#17560)
* [doc] Fix spelling errors in docs

* [doc] Fix spelling errors in scripts

* Bump version

* x-add-version

* Fix another typo

* Rebuild
2021-05-09 10:48:42 -07:00

2.1 KiB

vcpkg_build_make

The latest version of this document lives in the vcpkg repo.

Build a linux makefile project.

Usage:

vcpkg_build_make([BUILD_TARGET <target>]
                 [ADD_BIN_TO_PATH]
                 [ENABLE_INSTALL]
                 [MAKEFILE <makefileName>]
                 [LOGFILE_ROOT <logfileroot>])

BUILD_TARGET

The target passed to the make build command (./make <target>). If not specified, the 'all' target will be passed.

ADD_BIN_TO_PATH

Adds the appropriate Release and Debug bin\ directories to the path during the build such that executables can run against the in-tree DLLs.

ENABLE_INSTALL

IF the port supports the install target use vcpkg_install_make() instead of vcpkg_build_make()

MAKEFILE

Specifies the Makefile as a relative path from the root of the sources passed to vcpkg_configure_make()

BUILD_TARGET

The target passed to the make build command (./make <target>). Defaults to 'all'.

INSTALL_TARGET

The target passed to the make build command (./make <target>) if ENABLE_INSTALL is used. Defaults to 'install'.

DISABLE_PARALLEL

The underlying buildsystem will be instructed to not parallelize

SUBPATH

Additional subdir to invoke make in. Useful if only parts of a port should be built.

Notes:

This command should be preceded by a call to vcpkg_configure_make(). You can use the alias vcpkg_install_make() function if your makefile supports the "install" target

Examples

Source

scripts/cmake/vcpkg_build_make.cmake