<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[configuration file for cmake?]]></title><description><![CDATA[<p dir="auto">I'm using Qt 6.2.3 with QtCreator 6.0.2<br />
When I create a new project I get a minimal CMakeLists.txt file generated.<br />
This contains the lines:<br />
set(CMAKE_CXX_STANDARD 11)<br />
set(CMAKE_CXX_STANDARD_REQUIRED ON)</p>
<p dir="auto">I have been looking for info on these settiings here, Stackoverflow, Cmake documentation etc. but nowhere can I find how to set or change the default value.<br />
I know I can set this every time manually but I would like it to automatically have CMAKE_CXX_STANDARD 20 every time I create a new project.<br />
I am following a course and therefore am creating lots of project files. It's no big deal to edit it manually but I am curious where the default value is stored.</p>
]]></description><link>https://forum.qt.io/topic/135066/configuration-file-for-cmake</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 07:02:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/135066.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Mar 2022 14:36:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to configuration file for cmake? on Wed, 16 Mar 2022 08:40:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/kkoehne">@<bdi>kkoehne</bdi></a> ,<br />
Many thanks! Yes, I have been creating the projects in QtCreator. I'm on Debian but the path is the same. I had been searching in every available cmake directory and hadn't got round to diving down the qtcreator tree.</p>
]]></description><link>https://forum.qt.io/post/706540</link><guid isPermaLink="true">https://forum.qt.io/post/706540</guid><dc:creator><![CDATA[Colins2]]></dc:creator><pubDate>Wed, 16 Mar 2022 08:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to configuration file for cmake? on Tue, 15 Mar 2022 15:00:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/colins2">@<bdi>Colins2</bdi></a> ! I assume you're generating the project with Qt Creator?</p>
<p dir="auto">The default version is currently hardcoded in the wizards. An easy way to change it is to edit the matching CMakeLists.txt file in the Qt Creator installation directory, e.g. on Windows typically under C:\Qt\Tools\QtCreator\share\qtcreator\templates\wizards\projects .</p>
]]></description><link>https://forum.qt.io/post/706470</link><guid isPermaLink="true">https://forum.qt.io/post/706470</guid><dc:creator><![CDATA[kkoehne]]></dc:creator><pubDate>Tue, 15 Mar 2022 15:00:34 GMT</pubDate></item></channel></rss>