kmpkg_cmake_install
Build and install a CMake project.
Usage
kmpkg_cmake_install(
[DISABLE_PARALLEL]
[ADD_BIN_TO_PATH]
)
To use this function, you must depend on the helper port kmpkg-cmake:
"dependencies": [
{
"name": "kmpkg-cmake",
"host": true
}
]
Parameters
DISABLE_PARALLEL
Disables running the build in parallel.
By default builds are run with up to KMPKG_MAX_CONCURRENCY jobs. This option limits the build to a single job and should be used only if the underlying build is unable to run correctly with concurrency.
ADD_BIN_TO_PATH
Adds the configuration-specific bin/ directory to the PATH during the build.
When building for a Windows dynamic triplet, newly built executables may not be immediately executable because their dependency DLLs may not be findable from the build environment. This flag instructs kmpkg to add any additional paths needed to locate those dependency DLLs to the PATH environment variable. This is required if the project needs to execute newly built binaries as part of the build (such as to generate code).
Examples
kmpkg_from_github(OUT_SOURCE_PATH source_path ...)
kmpkg_cmake_configure(SOURCE_PATH "${source_path}")
kmpkg_cmake_install()
Search kumose/kmpkg for examples
Remarks
This command replaces kmpkg_install_cmake().