<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le ven. 9 nov. 2018 à 17:22, DKLind <<a href="mailto:davidklind@gmail.com">davidklind@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a very large project where each sub-project creates a debian package.<br>
<br>
When "make/ninja package" is specified, it performs a "make/ninja all"<br>
before packaging. I would prefer to perform a "make/ninja all" myself before<br>
I doing a "make/ninja package".<br>
<br>
I want to create a package for just one target. I can use "cpack -D<br>
CPACK_COMPONENTS_ALL=<target>" to do this but, CPack takes a long time to<br>
create the package. I can only surmise that CPack is building everything in<br>
the background, as there is no output. If I have everything build BEFORE i<br>
run "cpack -D CPACK_COMPONENTS_ALL=<target>", it completes in seconds.<br></blockquote><div><br></div><div>I'm almost sure that when invoked on itself like:</div><div><br></div><div>cpack -G TGZ </div><div><br></div><div>cpack does not build at all.</div><div>cpack does install but AFAIK it does not trigger the build.</div><div><br></div><div>you can try:</div><div><br></div><div>ninja clean</div><div>cpack -V -G TGZ</div><div><br></div><div>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.</div><div><br></div><div>Note that using "-V" verbose option of CPack you'll more traces of what CPack does.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it possible to disable CPack from building everything?<br></blockquote><div><br></div><div>If you observe that could you send us a stripped down project that exhibit this behavior?</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div>