Hi,<br><br>Suppose I have a macro that rougly behaves like this:<br><br><span style="font-family: courier new,monospace;">macro( foo )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> list( APPEND my_list <something> )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> if( <foo's length is less than certain number> )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> foo()</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> endif()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">endmacro()</span><br><br>How would this be processed in CMake? Obviously you couldn't inline this macro because it's recursive. I need to do something like this to recursively iterate target dependencies and append all of their includes to a single, flattened list.<br>
<br>Thanks.<br>