<div class="gmail_quote">On Sun, Sep 5, 2010 at 10:06 PM, Clifford Yapp <span dir="ltr">&lt;<a href="mailto:cliffyapp@gmail.com">cliffyapp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I was hoping I wouldn&#39;t need to do a custom wrapper for every target,<br>
particularly since I&#39;m building some sub-projects using foreign<br>
CMakeLists.txt files and I&#39;d really rather not change them from their<br>
default state - that&#39;s an extra maintainance burden and one of the<br>
advantages I&#39;m most hoping for with CMake is to be able to use<br>
external build logic without altering it.<br></blockquote><div><br>Well, if Michael&#39;s correct about the original form being available with an _ prefix, then at least you wouldn&#39;t have to modify any sub-project build files. Just<br>
<br>function (add_library name ....)<br>  # do stuff to remember this target<br>  _add_library (name ....)<br>endfunction (add_library)<br><br>Not 100% ideal, but a relatively small amount of work should get you what you asked for initially, I think.<br>
<br>Ceej<br>aka Chris Hillery<br></div></div>