<div dir="ltr"><div>Hi Alessio.</div><div> </div><div>There is a target property EXCLUDE_FROM_DEFAULT_BUILD. If you set this on a target to true, the target will be removed from "Build Solution."</div><div> </div>
<div>2.8.11 should introduce a per-config variant of this property, EXCLUDE_FROM_DEFAULT_BUILD_<CONFIG>.</div><div> </div><div>Petr</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 7:15 PM, Alessio <span dir="ltr"><<a href="mailto:masariello+cmake.org@gmail.com" target="_blank">masariello+cmake.org@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p><span lang="EN-GB">Hi there</span></p>
<p><span lang="EN-GB">Is there a
way to tell the Visual Studio generators that a target should not be included
in “whole solution” builds?</span></p>
<p><span lang="EN-GB">With the
following sequence A will be excluded from all solution configurations, but B
will be included.</span></p>
<p style="text-indent:0.5in"><span lang="EN-GB">add_custom_target(A)</span></p><p style="text-indent:0.5in">add_custom_target(B COMMAND echo This is target B)</p><p style="text-indent:0.5in">add_dependencies(A B)</p>
<p><span lang="EN-GB">I’m
actually trying to define a set of targets that do not get built automatically
when one does a “solution build” in Visual Studio. I.e. I’d like to find a way
to have B excluded as well.</span></p>
<p><span lang="EN-GB">Is this
possible at all?</span></p>
<p><span lang="EN-GB">Thanks in
advance! And thanks to the CMake folks for the great tool!</span></p></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>