<div dir="ltr">On Sun, Jun 14, 2015 at 10:21 PM, Eric Wing <span dir="ltr"><<a href="mailto:ewmailing@gmail.com" target="_blank">ewmailing@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 6/14/15, Gregor Jasny <<a href="mailto:gjasny@googlemail.com">gjasny@googlemail.com</a>> wrote:<br>
> Hi Eric,<br>
><br>
> On 14/06/15 14:38, Eric Wing wrote:<br>
>> I have been successful at setting Xcode properties on specific targets<br>
>> with CMake via:<br>
>><br>
>> set_property (TARGET ${TARGET} PROPERTY<br>
>> XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE})<br>
>><br>
>> But I have been unable to set properties on the global/root project.<br>
>> Is there a way to do this?<br>
><br>
> The excellent CMake documentation has the answer. The XCODE_ATTRIBUTE<br>
> help page here:<br>
> <a href="http://www.cmake.org/cmake/help/v3.2/prop_tgt/XCODE_ATTRIBUTE_an-attribute.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.2/prop_tgt/XCODE_ATTRIBUTE_an-attribute.html</a><br>
><br>
> Would have pointed you to CMAKE_XCODE_ATTRIBUTE<br>
>> <a href="http://www.cmake.org/cmake/help/v3.2/variable/CMAKE_XCODE_ATTRIBUTE_an-attribute.html" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.2/variable/CMAKE_XCODE_ATTRIBUTE_an-attribute.html</a><br>
><br>
> Hope that helps,<br>
> Gregor<br>
><br>
<br>
</span>Can you elaborate on this? I can't make this work. (I remember that I<br>
tried this before and failed.)<br>
<br>
Here's an example of how I'm trying to invoke it:<br>
<br>
set_property(GLOBAL PROPERTY<br>
CMAKE_XCODE_ATTRIBUTE_SWIFT_OBJC_INTERFACE_HEADER_NAME<br>
"BlurrrSwiftInterfaceHeader.h")<br>
<br>
This seems to get ignored. (But if I use a per-target setting, then it works.)<br></blockquote><div><br></div><div>The global setting is a variable, not a property. So you'd set it like this:<br><br></div><div>set(CMAKE_XCODE_ATTRIBUTE_SWIFT_OBJC_INTERFACE_HEADER_NAME "BlurrrSwiftInterfaceHeader.h")<br><br></div><div>Hope it helps.<br><br></div><div>Petr<br></div></div></div></div>