<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 15, 2013 at 10:52 AM, Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hey guys,<br>
<br>
the handling of CMAKE_BUILD_TYPE=debugfull in FindKDE4Internal.cmake is<br>
guarded by `if (CMAKE_COMPILER_IS_GNUCXX)` so it won't work if you use clang.<br>
It gets worse if you use ccache as well, i.e. via<br></blockquote><div><br></div><div style>Hmm, interesting, I just noticed that Debian seems to have dropped support for Debugfull completely, only 1 reference in the file and that is in a comment.</div>
<div> </div><div style>I'd say an "OR CMAKE_CXX_COMPILER_ID MATCHES 'clang'" should be sufficient, the cmake manual hints towards the compiler id being set to 'clang' (in a more or less unrelated part, but the other mentioned id's match whats in that variable on the corresponding compilers). So the line should be</div>
<div style><br></div><div style>if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES 'clang' )</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

export CC="ccache /usr/bin/clang -Qunused-arguments"<br>
export CXX="ccache /usr/bin/clang++ -Qunused-arguments"<br>
<br>
Then probably cmake won't even figure out I'm actually using clang, no?<br></blockquote><div><br></div><div style>At least with gcc this is not an issue and I'd expect this to be not an issue with clang either since CMake runs the compile with --version or something like that to find out what compiler it has. Unless of course you use the CMAKE_CXX_COMPILER variable.</div>
<div> </div><div style>Andreas</div></div><br></div></div>