views:

301

answers:

0

I'm using CMake to generate an Xcode project, and I use

set_target_properties(myproj PROPERTIES XCODE_ATTRIBUTE_WHATEVER "some value")

to explicitly set a build setting. I'd like to only set it for a particular configuration, similar to using

set(CMAKE_CXX_FLAGS_MYCONFIG "-O2")

How can I do this?