<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>west build cmake option</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127913/west-build-cmake-option</link><description>I added a cmake configuration option to CMakeLists.txt, but sending a value through west build does not set the cmake option. Here is what I have done: CMakeLists.txt 
 The build command: 
 west build --pristine --build-dir $HOME/src/leaf-fall/firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Apr 2026 21:49:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127913/west-build-cmake-option" /><item><title>RE: west build cmake option</title><link>https://devzone.nordicsemi.com/thread/565482?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2026 21:49:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8b83420-d244-485d-b326-ed2c3e5f3a8b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You must configure this in sysbuild. Create a &lt;code&gt;sysbuild.cmake&lt;/code&gt; file in your project and add the code there.&lt;/p&gt;
&lt;p&gt;I tested with only the logging just to verify that it works, and as you can see, it prints &amp;quot;Enabling right overlay&amp;quot; when including &lt;code&gt;-DKEYBOARD_RIGHT=ON&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" title="" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1777067350712v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>