The latest version of this document lives in the vcpkg repo.
Build and install a msvc makefile project.
vcpkg_install_nmake(
SOURCE_PATH <${SOURCE_PATH}>
[NO_DEBUG]
[TARGET <all>]
PROJECT_SUBPATH <${SUBPATH}>
PROJECT_NAME <${MAKEFILE_NAME}>
[PRERUN_SHELL <${SHELL_PATH}>]
[PRERUN_SHELL_DEBUG <${SHELL_PATH}>]
[PRERUN_SHELL_RELEASE <${SHELL_PATH}>]
[OPTIONS <-DUSE_THIS_IN_ALL_BUILDS=1>...]
[OPTIONS_RELEASE <-DOPTIMIZE=1>...]
[OPTIONS_DEBUG <-DDEBUGGABLE=1>...]
Specifies the directory containing the source files.
By convention, this is usually set in the portfile as the variable SOURCE_PATH
.
Specifies the sub directory containing the makefile.vc
/makefile.mak
/makefile.msvc
or other msvc makefile.
Specifies the name of msvc makefile name. Default is makefile.vc
This port doesn't support debug mode.
Script that needs to be called before build
Script that needs to be called before debug build
Script that needs to be called before release build
Additional options passed to generate during the generation.
Additional options passed to generate during the Release generation. These are in addition to OPTIONS
.
Additional options passed to generate during the Debug generation. These are in addition to OPTIONS
.
See vcpkg_build_nmake()
.
This command transparently forwards to vcpkg_build_nmake()
, adding ENABLE_INSTALL