-
Notifications
You must be signed in to change notification settings - Fork 1
Common CMake options
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.
-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.
-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.