On Wed, Dec 3, 2008 at 11:05 AM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Working from some of the Boost CMake implementations if you are trying to create macros that take any number of arguments with some of them being optional then here is some code that you might be interested in.<br>
<br>
<a href="https://svn.boost.org/trac/boost/wiki/CMakeLibraryProject" target="_blank">https://svn.boost.org/trac/boost/wiki/CMakeLibraryProject</a><br>
<br>
&lt;snip&gt;<br><br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
#----- And Now finally your macro can use it like the following:<div class="Ih2E3d"><br>
<br>
&lt;snip&gt;</div><div class="Ih2E3d"><br>
<br>
macro(library_component project_name)<br>
<br></div>
#--- and you should be able to call it like this:<br>
library_component(MyNewLibrary DEPENDENCIES item1)<br>
library_component(MyOtherLibrary DEPENDENCIES item1 item2 SOME_OPTION)</blockquote></div><br>Thanks Michael! This is great stuff and will help me simplify things.<br>