<div dir="ltr">I am trying to change the optimization setting for a particular configuration in the genreated XCode project, specifically the "RelWithDebInfo" configuration. The default optimization level is "2" and I would like it to be "3".<div>
<br></div><div>Here is my CMakeLists.txt</div><div><div>set(XCODE_ATTRIBUTE_GCC_OPTIMIZATION_LEVEL[variant=RelWithDebInfo] 3)</div><div><br></div><div>project (Hello)</div><div>add_executable (Hello hello.c)</div></div><div>
<br></div><div>The generated project still has the optimization level set to "2". Is this the correct way to override that setting?</div><div><br></div><div>I am using cmake version 2.8.12.1.</div><div><br></div>
<div><br></div></div>