[CMake] Building the package target as part of the ALL_BUILD target

James Bigler jamesbigler at gmail.com
Thu Aug 25 18:13:44 EDT 2011


Thanks, David.

James

On Thu, Aug 25, 2011 at 2:43 PM, David Cole <david.cole at 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 at 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110825/a3e29158/attachment-0001.htm>


More information about the CMake mailing list