When is "on demand"?<br><br>You could do this at CMake configure time if the "on demand" choice is based on something known at CMake configure time. If not, then it must be based on build dependencies and could be injected into the stream of stuff that is built with ADD_CUSTOM_COMMAND rules.<br>
<br>Can you do it at CMake configure time? If not, send along some more details to help us understand what you're aiming for.....<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Fri, May 9, 2008 at 3:29 PM, Bryan O'Sullivan <<a href="mailto:bos@lindenlab.com">bos@lindenlab.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'd like to set up a scheme in which I install a third-party SDK on demand, before compiling the code that depends on it. In principle, this is something that a pre_build target would help with, but that's VS-specific.<br>
<br>
Is there some other non-cumbersome approach I could use, short of something kludgy like ADD_CUSTOM_TARGET that will always be run?<br>
<br>
<b<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>