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".

Here is my CMakeLists.txt
set(XCODE_ATTRIBUTE_GCC_OPTIMIZATION_LEVEL[variant=RelWithDebInfo] 3)

project (Hello)
add_executable (Hello hello.c)

The generated project still has the optimization level set to "2". Is this
the correct way to override that setting?

I am using cmake version 2.8.12.1.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to