<div class="gmail_quote">On Sun, Sep 5, 2010 at 10:06 PM, Clifford Yapp <span dir="ltr"><<a href="mailto:cliffyapp@gmail.com">cliffyapp@gmail.com</a>></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't need to do a custom wrapper for every target,<br>
particularly since I'm building some sub-projects using foreign<br>
CMakeLists.txt files and I'd really rather not change them from their<br>
default state - that's an extra maintainance burden and one of the<br>
advantages I'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's correct about the original form being available with an _ prefix, then at least you wouldn'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>