
The options must be added after a - at the end of the command. If you work on the command line, pass the additional options to the west build command. This field is prepopulated with the global CMake options, and you can modify them, remove them, or add to them for the current project. Specify project-specific CMake options when opening the nRF Connect SDK project.Ĭlick File > Open nRF Connect SDK project, select Extended Settings, and specify the options in the Extra CMake Build Options field. Specify global CMake options in the SES options before opening a project.Ĭlick Tools > Options, select the nRF Connect tab, and specify a value for Additional CMake options. If you work with SES, you can specify global CMake options that are used for all projects, and you can modify these options when you open a project: These options are specified when CMake is run, thus not during the actual build, but when configuring the build. You can provide additional options for building your application to the CMake process, which can be useful, for example, to switch between different build scenarios. The documentation for each configuration option also lists the menu path where the option can be found. To locate a specific configuration option, use the filter ( Jump to in menuconfig and guiconfig).
Cmake option how to#
See Interactive Kconfig interfaces in the Zephyr documentation for instructions on how to run menuconfig or guiconfig. The other options allow you to configure the child images. To configure the parent image (the main application), select menuconfig. If your application contains more than one image (see Multi-image builds), you must select the correct target. To edit the file in SES, select Project > Configure nRF Connect SDK Project. These tools present all available options and allow you to select the ones that you need.

Cmake option update#
config file directly, you should use SES or a tool like menuconfig or guiconfig to update it. config file in the build directory.Ĭhanges are picked up immediately, and you do not need to re-open the project in SES. To quickly test different configuration options, or to build your application in different variants, you can update the. This means that this file is available when building the application, but it is deleted when you clean the build directory. The combined configuration is saved in a zephyr/.config file in your build directory. When building your application, the different Kconfig and *_defconfig files and the prj.conf file are merged together. Selecting a build type from command line.

Adding files and changing compiler settings.

