[CMake] Different settings for different configurations in Xcode
Daniel Dekkers
d.dekkers at cthrough.nl
Wed Oct 19 06:18:00 EDT 2011
Hi,
I still have issues with the CMake feature to define different settings for different configurations in Xcode (4.0.2).
Related to...
http://www.cmake.org/Bug/view.php?id=11667
http://www.cmake.org/Bug/view.php?id=8179
I've tried lots of different interpretations of the syntax (which is undocumented apart from the bug tracker?) but nothing seems to work, if I try this...
SET_TARGET_PROPERTIES( ${RT_APP_NAME} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY[variant=Debug] ${RT_CODE_SIGN_IDENTITY_DEVELOPMENT} )
SET_TARGET_PROPERTIES( ${RT_APP_NAME} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY[variant=Release] ${RT_CODE_SIGN_IDENTITY_DISTRIBUTION} )
or...
SET_TARGET_PROPERTIES( ${RT_APP_NAME} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY[variant=Debug][sdk=*] ${RT_CODE_SIGN_IDENTITY_DEVELOPMENT} )
SET_TARGET_PROPERTIES( ${RT_APP_NAME} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY[variant=Release][sdk=*] ${RT_CODE_SIGN_IDENTITY_DISTRIBUTION} )
... it always results in both settings being added to both configurations (under the key "Any sdk" that is added twice per configuration).
I'm using CMake 2.8-6.
Any suggestions?
Thanks,
Daniel Dekkers
More information about the CMake
mailing list