Generator expressions are special placeholders $<> used in custom commands and targets. If external project weren't of "utility" type in CMake (e.g. executable) it would be possible to associate imported location with it and use in other custom commands and targets as any other target. This allows CMake to automatically substitute configuration and handle dependencies where necessary.<br>
<br>For example if you have code generator or test runner written in C#. Now it's still possible but you have to use CMAKE_CFG_INTDIR.<br><br><div class="gmail_quote">On Wed, Aug 22, 2012 at 4:08 PM, Gerhard den Hollander <span dir="ltr"><<a href="mailto:gdenhollander@fugro-jason.com" target="_blank">gdenhollander@fugro-jason.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Yuri Timenkov <<a href="mailto:yuri@timenkov.ru">yuri@timenkov.ru</a>> (Wed, Aug 22, 2012 at 01:20:37PM +0200)<br>
<div class="im">> It's better to use include_external_msproject with C# projects. After fixing bug <a href="http://public.kitware.com/Bug/view.php?id=13120" target="_blank">http://public.kitware.com/Bug/view.php?id=13120</a> it's possible to use:<br>
><br>
> include_external_msproject(Configurator ${CMAKE_SOURCE_DIR}/MyCSProject.csproj<br>
> TYPE FAE04EC0-301F-11D3-BF4B-00C04F79EFBC<br>
> PLATFORM "Any CPU"<br>
> )<br>
<br>
<br>
</div>According to the 2.8.9 changelog, this bugfix is part of 2.8.9.<br>
<div class="im"><br>
<br>
><br>
> Additionally you can use configure_file to create file in $(SolutionDir) to pass information (like paths, configuration options, etc.) to msbuild and VS IDE.<br>
<br>
> The only drawback is that CMake sees these project as utility projects, so you can't use them in generator expressions. However you can link to them by adding dependencies.<br>
<br>
</div>Im not sure what you mean with the above. What are generator<br>
expressions ?<br>
<br>
<br>
<br>
</blockquote></div><br>