[CMake] Xcode generator results in a project file without optimization

Siyuan Ren netheril96 at gmail.com
Wed May 11 05:56:24 EDT 2016


OK, I got it. It worked all the time, but I looked at the wrong scheme/target.

On Wed, May 11, 2016 at 3:05 PM, Gregor Jasny <gjasny at googlemail.com> wrote:
> On 11/05/16 08:40, Siyuan Ren wrote:
>> Attached are a minimal demonstration and a screenshot of what Xcode
>> shows me when it opens the project.
>
> This also works for me. In your Xcode project file also everything looks
> normal (see GCC_OPTIMIZATION_LEVEL).
>
> Could you please switch your Xcode Build Settings View from "Combined"
> to "Levels"? I suspect you have an xcconfig file loaded via an
> environment variable which shadows the build settings.
>
> Thanks,
> Gregor
>


More information about the CMake mailing list