<br>Hi all,<br><br>I am sorry for dragging you all back into the quote problem, but I&#39;ve just spent 4 hours on ONE SET OF QUOTES!!! Sorry, had to get that out of the system. I promise no more.<br><br>Any way, I am using ExternalProject, which downloads and builds couple of projects. The problem is on Windows, where I am trying to invoke msbuild on a MSVC solution that is included in the source archive. I am attaching the cmake file for your reference.<br>
<br>Well, in it there are two external projects, first one builds fine, since I do not have to pass it any complex parameters. But, for the second, I have to expand its include list to point to the first one, and here I am having trouble. The command in question is, specifically the BUILD_COMMAND and the quotes in the /p:IncludePath argument:<br>
<br>  ExternalProject_Add(<br>    libvorbis<br>    # LIST_SEPARATOR ::<br>    DEPENDS libogg<br>    PREFIX libvorbis<br>    URL <a href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.bz2">http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.2.tar.bz2</a> <br>
    URL_MD5 798a4211221073c1409f26eac4567e8b<br>    #CONFIGURE_COMMAND rem nop<br>    CONFIGURE_COMMAND echo msbuild win32/vs2010/libvorbis/libvorbis_static.vcxproj /t:Build /p:Configuration=${CMAKE_BUILD_TYPE} /p:IncludePath=&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/&quot;<br>
    BUILD_COMMAND msbuild win32/vs2010/libvorbis/libvorbis_static.vcxproj /t:Build /p:Configuration=${CMAKE_BUILD_TYPE} /p:IncludePath=&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/&quot;<br>    INSTALL_COMMAND rem nop<br>
    BUILD_IN_SOURCE 1<br>    )<br><br>I am trying to make the argument on the command line to look like<br><br>/p:IncludePath=&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/&quot;<br><br>but no matter what I do, it does not work. I tried:<br>
<br>/p:IncludePath=$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/<br>
/p:IncludePath=&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/&quot;<br>&quot;/p:IncludePath=&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/&quot;&quot;<br>&quot;/p:IncludePath=\&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/\&quot;&quot;<br>
\&quot;/p:IncludePath=\&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/\&quot;\&quot;<br>&quot;/p:IncludePath=\\&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/\\&quot;&quot;<br>
<br>and probably few more, but I always either get something unusable. My best guess was:<br><br>&quot;/p:IncludePath=\&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/\&quot;&quot;<br>
<br>Quotes around the whole argument, and then escaping the inner quotes. But very surprisingly I get:<br><br>/p:IncludePath=\&quot;$(IncludePath)${CMAKE_INSTALL_PREFIX}/include/\&quot;<br><br>So, please, help. I am sure that in my frustration I forgot something obvious...<br>
<br>Miki.<br>
<br>