Hello,<div><br></div><div>I have defined a number of functions, like so...</div><div><br></div><div><div>function(BUILD_HOTWIRE_SERVER)</div><div>&nbsp;&nbsp;...</div><div><div>endfunction(BUILD_HOTWIRE_SERVER)</div><div><br></div><div>
<br></div><div>Now, based on what user as requested, I&#39;d like to call selected functions like so...</div><div><br></div><div><br></div><div><div>foreach(COMPONENT ${ONLY})</div><div>&nbsp;&nbsp;if(ENABLE_${COMPONENT})</div><div>
&nbsp;&nbsp; &nbsp;message(BUILD_${COMPONENT})</div><div>&nbsp;&nbsp; &nbsp;BUILD_${COMPONENT}()</div><div>&nbsp;&nbsp;endif()</div><div>&nbsp;&nbsp;message(${LINE})</div><div>endforeach(COMPONENT)</div><div><br></div><div><br></div><div>...however, cmake does not seem too friendly to the&nbsp;BUILD_${COMPONENT}().</div>
<div><br></div><div>What should I do?</div><div><br></div><div>Thankyou,</div><div><br></div><div>Nima</div></div><div><br></div><div><br></div></div>-- <br>Nima Talebiw: <a href="http://ai.autonomy.net.au/">http://ai.autonomy.net.au/</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
p: +61-4-0667-7607 &nbsp;m: <a href="mailto:nima@autonomy.net.au">nima@autonomy.net.au</a><br>
</div>