[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Building the package target as part of the ALL_BUILD
From:       James Bigler <jamesbigler () gmail ! com>
Date:       2011-08-25 22:13:44
Message-ID: CA+77nZCQHrBrLBNtxSnTxELApWpaKAR_aQvb27L=AoXyUXUAYA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks, David.

James

On Thu, Aug 25, 2011 at 2:43 PM, David Cole <david.cole@kitware.com> wrote:

> There's not presently a way to add "package" to "all" -- but you can
> easily add a custom target that calls:
>
> cmake --build . --config Release --target package
>
> Or directly calls cpack with appropriate arguments.
>
> And with a custom target, you can make it part of all....
>
>
> HTH,
> David
>
> On Thu, Aug 25, 2011 at 4:13 PM, James Bigler <jamesbigler@gmail.com>
> wrote:
> > Does anyone know of a way to have the package target built by default?
> In
> > other words add it to the ADD_BUILD built in target?  I'm guessing since
> > there isn't support for adding custom targets to built in CMake targets
> that
> > this would have to be controlled by some magic CMAKE_ variable.
> >
> > Thanks,
> > James
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>

[Attachment #5 (text/html)]

Thanks, David.<br><br>James<br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at \
2:43 PM, David Cole <span dir="ltr">&lt;<a \
href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">

There&#39;s not presently a way to add &quot;package&quot; to &quot;all&quot; -- but \
you can<br> easily add a custom target that calls:<br>
<br>
cmake --build . --config Release --target package<br>
<br>
Or directly calls cpack with appropriate arguments.<br>
<br>
And with a custom target, you can make it part of all....<br>
<br>
<br>
HTH,<br>
David<br>
<div><div></div><div class="h5"><br>
On Thu, Aug 25, 2011 at 4:13 PM, James Bigler &lt;<a \
href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>&gt; wrote:<br> &gt; \
Does anyone know of a way to have the package target built by default?  In<br> &gt; \
other words add it to the ADD_BUILD built in target?  I&#39;m guessing since<br> &gt; \
there isn&#39;t support for adding custom targets to built in CMake targets that<br> \
&gt; this would have to be controlled by some magic CMAKE_ variable.<br> &gt;<br>
&gt; Thanks,<br>
&gt; James<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" \
target="_blank">www.kitware.com</a><br> &gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> &gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" \
target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br> &gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" \
target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br> &gt;<br>
</blockquote></div><br>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic