mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-11 02:37:57 +08:00
* [vcpkg_*_nmake] Add option INSTALL_COMMAND * [gdal] Update to 3.1.3 and switch to vcpkg_*_nmake on Windows * [vcpkg_build_make] Add option MAKEFILE * fix install on windows, fix linux build * fix options position * [gdal] Fix linux build * [gdal] Fix expat library name * [gdal] Fix geos library name * [gdal] Fix cmake wrapper * [pdal] Fix dependency geos * [pdal] Fix PDALConfig.cmake * [gdal] Fix dependency cfitsio on *inx * disable cfitsio temporary * [gdal] Correct cmake wrapper and usage * [gdal] Fix tools on windows-static * Revert a9ac823007975485aacc7e1f3eb4053e295376e1 * Apply suggestions * [vcpkg_build_nmake] Fix install command * [vcpkg_build_nmake] Fix install command * regenerate docs * [gdal] Update dependency iconv and charset library names * [gdal] add json-c as a dependency on non-windows Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
51 lines
1.8 KiB
Markdown
51 lines
1.8 KiB
Markdown
# vcpkg_build_make
|
|
|
|
Build a linux makefile project.
|
|
|
|
## Usage:
|
|
```cmake
|
|
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>`). If not specified, the 'all' target will
|
|
be passed.
|
|
|
|
### 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 preceeded by a call to [`vcpkg_configure_make()`](vcpkg_configure_make.md).
|
|
You can use the alias [`vcpkg_install_make()`](vcpkg_configure_make.md) function if your CMake script supports the
|
|
"install" target
|
|
|
|
## 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_build_make.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_build_make.cmake)
|