Right %cmake flags

Richard Shaw hobbes1069 at gmail.com
Tue Apr 23 12:57:46 UTC 2013


On Tue, Apr 23, 2013 at 2:48 AM, Eugene Pivnev <ti.eugene at gmail.com> wrote:

> This problem was starting here: https://bugzilla.redhat.com/**
> show_bug.cgi?id=929256<https://bugzilla.redhat.com/show_bug.cgi?id=929256>
> And repeating again and again: https://bugzilla.redhat.com/**
> show_bug.cgi?id=947049<https://bugzilla.redhat.com/show_bug.cgi?id=947049>
> Problem is: what flags I mast to add to "%cmake .." if application itself
> not set -O3, but %cmake macro doing this?
> -O2 - bad idea.
>
> -DCMAKE_BUILD_TYPE=Release - bad idea
> -DNDEBUG - bad idea
>

I don't have time to dig into the project to inspect what's going on but
I've frequently had luck using the following:

-DCMAKE_BUILD_TYPE=RelWithDebInfo

For whatever reason with cmake the release option tends to use -O3 but
debug builds use -O2...

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20130423/d6ea72f8/attachment-0001.html>


More information about the devel mailing list