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
_______________________________________________
Powered by www.kitware.com

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

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

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

Reply via email to