[CMake] How do I set an Xcode property on the global/root project?

Gregor Jasny gjasny at googlemail.com
Sun Jun 14 13:31:32 EDT 2015


Hi Eric,

On 14/06/15 14:38, Eric Wing wrote:
> I have been successful at setting Xcode properties on specific targets
> with CMake via:
> 
> set_property (TARGET ${TARGET} PROPERTY
> XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE})
> 
> But I have been unable to set properties on the global/root project.
> Is there a way to do this?

The excellent CMake documentation has the answer. The XCODE_ATTRIBUTE
help page here:
http://www.cmake.org/cmake/help/v3.2/prop_tgt/XCODE_ATTRIBUTE_an-attribute.html

Would have pointed you to CMAKE_XCODE_ATTRIBUTE
> http://www.cmake.org/cmake/help/v3.2/variable/CMAKE_XCODE_ATTRIBUTE_an-attribute.html

Hope that helps,
Gregor


More information about the CMake mailing list