<table><tr><td style="">kossebau added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5866" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Yes, <tt style="background: #ebebeb; font-size: 13px;">#pragma once</tt> might be the nicer solution here.</p>

<p>I stayed away from proposing it though, as for one it is not a real standard by specifications and also by KDE coding traditions.<br />
And I would not like to be the one adding (and thus being responsible) the guinea pig to find out if that pragma is good enough for the real world ;)</p>

<p>Given the generated file is build-specific, one could write a configure test to check if the compiler supports it and then use that.<br />
Left for the next person though, the patch as-is solves the issues I hit already ;)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5866" rel="noreferrer">https://phabricator.kde.org/D5866</a></div></div><br /><div><strong>To: </strong>kossebau, Frameworks, Build System<br /><strong>Cc: </strong>elvisangelaccio<br /></div>