CPack disable build all

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CPack disable build all

DKLind
I have a very large project where each sub-project creates a debian package.

When "make/ninja package" is specified, it performs a "make/ninja all"
before packaging. I would prefer to perform a "make/ninja all" myself before
I doing a "make/ninja package".

I want to create a package for just one target. I can use "cpack -D
CPACK_COMPONENTS_ALL=<target>" to do this but, CPack takes a long time to
create the package. I can only surmise that CPack is building everything in
the background, as there is no output. If I have everything build BEFORE i
run "cpack -D CPACK_COMPONENTS_ALL=<target>", it completes in seconds.

Is it possible to disable CPack from building everything?



--
Sent from: http://cmake.3232098.n2.nabble.com/
--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CPack disable build all

Eric Noulard


Le ven. 9 nov. 2018 à 17:22, DKLind <[hidden email]> a écrit :
I have a very large project where each sub-project creates a debian package.

When "make/ninja package" is specified, it performs a "make/ninja all"
before packaging. I would prefer to perform a "make/ninja all" myself before
I doing a "make/ninja package".

I want to create a package for just one target. I can use "cpack -D
CPACK_COMPONENTS_ALL=<target>" to do this but, CPack takes a long time to
create the package. I can only surmise that CPack is building everything in
the background, as there is no output. If I have everything build BEFORE i
run "cpack -D CPACK_COMPONENTS_ALL=<target>", it completes in seconds.

I'm almost sure that when invoked on itself like:

cpack -G TGZ 

cpack does not build at all.
cpack does install but AFAIK it does not trigger the build.

you can try:

ninja clean
cpack -V -G TGZ

and I'm pretty sure CPack will fail because it won't find the expected bits to be installed precisely because they are not built.

Note that using "-V" verbose option of CPack you'll more traces of what CPack does.
 
Is it possible to disable CPack from building everything?

If you observe that could you send us a stripped down project that exhibit this behavior?

--
Eric

--

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:
https://cmake.org/mailman/listinfo/cmake