[CMake] Running cpack without source folder

Miklos Espak m.espak at ucl.ac.uk
Tue May 10 09:23:35 EDT 2016


Hi Attila,

indeed, I was running cpack as 'make package'. Everything is fine if I run
"cpack --config ./CPackConfig.cmake".

Thanks very much.

Miklos


On 10 May 2016 at 10:42, Attila Krasznahorkay <
attila.krasznahorkay at gmail.com> wrote:

> Hi,
>
> If you run the cpack executable directly, it should not
> reconfigure/rebuild your project. As far as I know...
>
> How do you run it now? "make package"? That will reconfigure/rebuild the
> project not really because of CPack, but because of how the Makefiles are
> set up.
>
> Cheers,
>             Attila
>
> > On 10 May 2016, at 09:43, Miklos Espak <m.espak at ucl.ac.uk> wrote:
> >
> > Hi,
> >
> > given a complete build folder with all external projects, is it possible
> to run cpack without touching the sources?
> >
> > As I see, it now starts with configuring and building the project.
> (Skipping what is up-to-date, usually everything.) This can cause a problem
> if you switched branch after the built has finished and before running
> cpack.
> >
> > Does cpack actually need anything from the sources? If not, is it
> possible to tell cpack not to try to reconfig/rebuild the project?
> >
> > Cheers,
> > Miklos
> >
> > --
> >
> > Powered by www.kitware.com
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
> >
> > CMake Support: http://cmake.org/cmake/help/support.html
> > CMake Consulting: http://cmake.org/cmake/help/consulting.html
> > CMake Training Courses: http://cmake.org/cmake/help/training.html
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/cmake
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160510/e37cd06e/attachment.html>


More information about the CMake mailing list