[CMake] how to set per-configuration xcode attributes
Jesse Beder
beder at math.uiuc.edu
Sun Sep 27 00:30:36 EDT 2009
I'm using the following syntax to set certain build settings on a
per-configuration basis:
set(CMAKE_CONFIGURATION_TYPES Debug Release Distribution)
set(CMAKE_CXX_FLAGS_DISTRIBUTION "-Os")
and also setting specific Xcode properties like this:
set_target_properties(${NAME} PROPERTIES
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "some value")
I'd like to combine these somehow; that is, to set the Xcode attribute
CODE_SIGN_IDENTITY only for the "Distribution" configuration. Is this
possible?
Thanks,
Jesse
More information about the CMake
mailing list