Skip to main content

kmpkg_build_cmake

warning

This function has been deprecated in favor of kmpkg_cmake_build.

Build a cmake project.

Usage

kmpkg_build_cmake([DISABLE_PARALLEL] [TARGET <target>])

Parameters

DISABLE_PARALLEL

The underlying buildsystem will be instructed to not parallelize

TARGET

The target passed to the cmake build command (cmake --build . --target <target>). If not specified, no 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.

Notes

This command should be preceded by a call to kmpkg_configure_cmake(). You can use the alias kmpkg_install_cmake() function if your CMake script supports the "install" target

Examples

Source

scripts/cmake/kmpkg_build_cmake.cmake