[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"><<a \
href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">
There's not presently a way to add "package" to "all" -- 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 <<a \
href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>> wrote:<br> > \
Does anyone know of a way to have the package target built by default? In<br> > \
other words add it to the ADD_BUILD built in target? I'm guessing since<br> > \
there isn't support for adding custom targets to built in CMake targets that<br> \
> this would have to be controlled by some magic CMAKE_ variable.<br> ><br>
> Thanks,<br>
> James<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" \
target="_blank">www.kitware.com</a><br> ><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> ><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" \
target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br> ><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" \
target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br> ><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