17.11. cmake

Possible arguments: (none), insource, noninja, run

Uses CMake for configuring and building.

By default an out-of-source build is performed, leaving the sources in WRKSRC free from build artifacts. With the insource argument, an in-source build will be performed instead. Setting it should be the exception when a regular out-of-source build does not work.

By default Ninja is used for the build. In some cases this does not work correctly. With the noninja argument, the build will fallback to using regular make for builds. It should only be used if a Ninja-based build does not work.

With the run argument, a run dependency is registered in addition to a build dependency.

For more information see Section 6.5.4, “Using cmake.

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.