<font color='black' size='2' face='arial'>Does a<font size="2">nother library that you add later depend on that one? Or an executable?<br>
<br>
<font size="2">If so, then the library will be added because it's required by dependencies, despite your request to exclude it from all.</font><br>
</font><font size="2" color="black" face="arial">

<div> <br>

</div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Robert Dailey &lt;rcdailey.lists@gmail.com&gt;<br>

To: CMake &lt;cmake@cmake.org&gt;<br>

Sent: Fri, Feb 8, 2013 4:59 pm<br>

Subject: [CMake] EXCLUDE_FROM_ALL not working?<br>

<br>









<div id="AOLMsgPart_0_62277cee-aece-4385-9d5f-d9efb2817918" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>I am calling add_library like so:

set( project_name mylib )
set( files main.cpp main.h )
set( exclude_flag EXCLUDE_FROM_ALL )
add_library( "${project_name}" SHARED ${exclude_flag} ${files} )

When I generate for Visual Studio 2008, I check the build
configuration and the mylib project is still setup to build when I
invoke Build Solution. Why isn't this flag working?
--

Powered by <a __removedlink__220696671__href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a __removedlink__220696671__href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a __removedlink__220696671__href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a __removedlink__220696671__href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a>
</tt></pre>
</div>

 <!-- end of AOLMsgPart_0_62277cee-aece-4385-9d5f-d9efb2817918 -->



</div>

</font></font>