Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Common CMake options

delgor edited this page Oct 10, 2014 · 4 revisions

Here you can find a list of useful options you can pass to CMake when building the Nuria Framework. Note that CMake Variables (-D options) will stay set until you clear the build directory.

General CMake options

-DCMAKE_INSTALL_PREFIX=< prefix >

Sets the install prefix for the cmake project. For example -DCMAKE_INSTALL_PREFIX=~/Framework to install the framework into your home directory.

-DCMAKE_BUILD_TYPE=(debug|release)

Sets the build type (debug or release). Example: -DCMAKE_BUILD_TYPE=release.

-G < your generator >

Sets the generator used by cmake (that is, for which build system cmake generates output). Usually this is only needed on Windows, where you'll want the "MinGW Generator", e.g. -G "MinGW Generator". This option can only be used on the first run of CMake.

Nuria specific options

-DNURIA_NO_DOCS=(1|0)

Disables the documentation generation if set to 1, e.g. -DNURIA_NO_DOCS=1

-DNURIA_MODULES=< list of modules >

Overrides the list of included modules. Values need to be separated by semicolon, e.g. -DNURIA_MODULES=Core;Tria if you want to build Tria and NuriaCore only. You can set this option after building other modules beforehand, unless you clear your build directory the previously compiled binaries will be used. As a last resort, installed versions will be used for linking.

-DNURIA_NO_< modulename >=(true|false)

Removes the specified module from the build. This takes precedence over -DNURIA_MODULES=.... Usage example: -DNURIA_NO_LUA=true -DNURIA_NO_TWIG=true to disable both Lua and Twig modules.

Clone this wiki locally