<div dir="ltr">On Tue, Apr 23, 2013 at 2:48 AM, Eugene Pivnev <span dir="ltr">&lt;<a href="mailto:ti.eugene@gmail.com" target="_blank">ti.eugene@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This problem was starting here: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=929256" target="_blank">https://bugzilla.redhat.com/<u></u>show_bug.cgi?id=929256</a><br>

And repeating again and again: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=947049" target="_blank">https://bugzilla.redhat.com/<u></u>show_bug.cgi?id=947049</a><br>
Problem is: what flags I mast to add to &quot;%cmake ..&quot; if application itself not set -O3, but %cmake macro doing this?<br>
-O2 - bad idea.<br>
<br>
-DCMAKE_BUILD_TYPE=Release - bad idea<br>
-DNDEBUG - bad idea<br></blockquote><div><br></div><div style>I don&#39;t have time to dig into the project to inspect what&#39;s going on but I&#39;ve frequently had luck using the following:</div><div style><br></div><div style>
-DCMAKE_BUILD_TYPE=RelWithDebInfo</div><div style><br></div><div style>For whatever reason with cmake the release option tends to use -O3 but debug builds use -O2...</div><div style><br></div><div style>Richard</div></div>
</div></div>