<table><tr><td style="">dfaure 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/D23789">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Which might be an issue for people who would like to use different compiler on the same system, both building against the same generated export header file.</p></blockquote>

<p>I see the theoretical problem, but how could this ever be a problem in practice?<br />
On Unix all compilers support the same syntax (<tt style="background: #ebebeb; font-size: 13px;">__attribute__ ((__deprecated__))</tt>), so you'd have to be on Windows, build a library with mingw, and then try to use it with MSVC, or vice-versa? I wonder if this even works. AFAIK it doesn't (hence the compiler-specific binary installers for Qt, for instance).</p>

<p>Oh and if C++14 support is enabled, we could use <tt style="background: #ebebeb; font-size: 13px;">[[deprecated("use foo instead")]]</tt> which is standard and portable :-)<br />
(requires C++17 for enums and namespaces)</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/D23789">https://phabricator.kde.org/D23789</a></div></div><br /><div><strong>To: </strong>kossebau<br /><strong>Cc: </strong>chehrlic, dfaure, cgiboudeaux, kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns<br /></div>