<?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>Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104071/default-build-directory-name-in-cmakepresets-json</link><description>Hi there, 
 Is there a way to specify a default build directory name in CMakePresets.json or in some other way? I prefer to specify something other than the default `build` or `build_1` names.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Oct 2023 14:55:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104071/default-build-directory-name-in-cmakepresets-json" /><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/452039?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 14:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0f45f5-64db-4901-a7a8-83b759368a97</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Your requests have been noted! I hadn&amp;#39;t seen this use case myself but it makes a lot of sense, I hope to see it coming soon.&lt;/p&gt;
[quote user="mlac"] if the build parent directory doesn&amp;#39;t exist, it should be created by the VS Code extension.[/quote]
&lt;p&gt;I have now shared this as well. Thanks!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/451595?ContentTypeID=1</link><pubDate>Sun, 22 Oct 2023 17:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2309601-9d72-46d7-81d5-037312485421</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;I&amp;#39;d also like to add that I want to specify directories like `build/my-hardware-revision`, and if the build parent directory doesn&amp;#39;t exist, it should be created by the VS Code extension.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/451594?ContentTypeID=1</link><pubDate>Sun, 22 Oct 2023 17:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:906940e1-8af4-4bde-8331-4b7a7b672f4a</guid><dc:creator>joe.perrin</dc:creator><description>&lt;p&gt;I literally just made an account to request this exact same feature. I hope you&amp;#39;ll consider giving it a high priority, i have the exact same issue/need as mlac. I&amp;#39;m sharing a git repo and would like to use a CMakePresets.json (or some other automatic revision controlled means) to specify build directory names as I have multiple build configs for a single application that requires too&amp;nbsp;many manual steps to get setup currently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/449418?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 22:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81037850-83a6-43cd-b703-6ef19a04035b</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi mlac,&lt;/p&gt;
&lt;p&gt;Hieu is on leave this week, so I&amp;#39;ll be taking over here.&lt;/p&gt;
[quote user="mlac"]Have the extension developers replied,&amp;nbsp;Hieu?[/quote]
&lt;p&gt;They have. Unfortunately it seems that there is no feature for this currently, but they agree that it&amp;#39;s something they could add.&lt;/p&gt;
&lt;p&gt;Although they currently don&amp;#39;t think the &amp;quot;default build directory name&amp;quot; warrants an entry in the VS Code settings, they plan to make new builds respect the binaryDir field from the &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/guides/build_config.html#how-to-save-a-build-configuration-as-a-preset"&gt;CMakePreset&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The presets have a binaryDir field that specifies the name of the build directory. This is stored correctly when saving a build as a preset, but it&amp;#39;s not picked up when you select the preset in the build window. I&amp;#39;ll add a ticket for this, as this should be picked up from the preset.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I hope that answers your questions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/449141?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 09:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43048814-81bb-4b8c-8ac3-569408b1c890</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Have the extension developers replied,&amp;nbsp;Hieu?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/447645?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 08:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76876c81-012e-4792-9a79-812ea37d2bb9</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi mlac,&lt;/p&gt;
&lt;p&gt;You only want to change the default build directory name in the nRF Connect VS Code Extension, right?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see an option for that in the extension&amp;#39;s configuration, and think it is not possible. Nonetheless, I have asked the extension developers to see if there are any alternatives. I will keep you updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/447437?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 10:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4d43e92-1a3e-4166-9236-f6be9352f92d</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I want to specify the *default* build directory names so that when developers check out the git repo and add build configurations, Visual Studio Code will offer the intended default build directory name.&lt;/p&gt;
&lt;p&gt;I want to specify per-build default build directory names.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7484.Untitled.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Default build directory name in CMakePresets.json</title><link>https://devzone.nordicsemi.com/thread/447422?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 09:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42ceffd8-0779-47a7-b7f6-25dcd0c3cd4d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi mlac,&lt;/p&gt;
&lt;p&gt;Do you want to change the default name, so that subsequent builds generate &amp;quot;new_name,&amp;quot; &amp;quot;new_name_1,&amp;quot; &amp;quot;new_name_2,&amp;quot; and so on?&lt;/p&gt;
&lt;p&gt;Or do you just want to specify a name for your build directory?&lt;/p&gt;
&lt;p&gt;If you only want to specify a name for your build directory, then you can use the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;-d&lt;/span&gt;&amp;nbsp;or &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;--build-dir&lt;/span&gt; option of&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;west build&lt;/span&gt;. (Refer:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/zephyr/develop/west/build-flash-debug.html#setting-source-and-build-directories"&gt;Building, Flashing and Debugging — Zephyr Project documentation (nRF Connect SDK) (nordicsemi.com)&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>