I mixed up the ordering of the examples in my last email.  I said that &quot;the first one works great&quot;.  I really meant that the second one works great (where the Xcode project file has quotes around the path) and the first one doesn&#39;t work (where there are no quotes around the resulting path).  Sorry for the confusion.<br>

<br><div class="gmail_quote">On Wed, Nov 11, 2009 at 5:24 PM, Ben Dolman <span dir="ltr">&lt;<a href="mailto:ben.dolman@gmail.com">ben.dolman@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I&#39;m having a problem when I use ${CMAKE_CFG_INTDIR} as part of my LIBRARY_OUTPUT_DIRECTORY when generating Xcode projects.  It seems that cmake properly puts quotes around the path when I have a dash in the path, but does not put them there when I don&#39;t.  Here&#39;s what I have:<br>


<br>set_target_properties (MyTarget PROPERTIES<br>        LIBRARY_OUTPUT_DIRECTORY &quot;/build/${CMAKE_CFG_INTDIR}/lib/lua&quot;<br>)<br><br>The SYMROOT in the resulting project.pbxproj looks like this (notice there are no quotes):<br>


SYMROOT = /build/$(CONFIGURATION)/lib/lua;<br><br>When I change my path to include a dash things change:<br><br>set_target_properties (MyTarget PROPERTIES<br>        LIBRARY_OUTPUT_DIRECTORY &quot;/build/${CMAKE_CFG_INTDIR}/lib/lua-5&quot;<br>


)<br><br>This time there are quotes:<br>SYMROOT = &quot;/build/$(CONFIGURATION)/lib/lua-5&quot;;<br><br>The first one works great; Xcode opens it and builds it to /build/Debug/lib/lua, /build/Release/lib/lua, etc.  The second one doesn&#39;t work; Xcode fails to even parse the file (&quot;Project /projects/Root/Root.xcodeproj cannot be opened because the project file cannot be parsed.&quot;). For whatever reason Xcode wants to put quotes around a path that has a dash in it, but not around a path that doesn&#39;t.<br>


<br>I tried this in both 2.6 and 2.8 with the same result.  Is there some way to force cmake to include the quotes when generating the Xcode files? Xcode doesn&#39;t seem to like the $(CONFIGURATION) variable unless you have quotes around your path.<br clear="all">


<br>Thanks, <br><font color="#888888">Ben Dolman<br>
</font></blockquote></div>