Ignore the last paragraph of my previous message. That was with the '-C' option.<br><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 12:10 PM, Jack Stalnaker <span dir="ltr"><<a href="mailto:jack.stalnaker@gmail.com" target="_blank">jack.stalnaker@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">--config worked. Wow, if -C is the wrong option, I wish it wouldn't appear in the tutorial and in the wiki section on creating a package. From <a href="http://cmake.org" target="_blank">cmake.org</a> itself. That's confusing. It's not the only error I've noticed in the tutorial. In the section on testing, it's never mentioned that enable_testing() has to be called. I only found that out when my tests failed to run. I had to search outside the tutorial for the appropriate sequence of calls, and then verify in the tutorial source files that enable_testing was called.<div>
<br></div><div>I did try an out of source build (making certain to delete the cache files first), but I got the same results. It's still only packing the bin directory with the built file. </div><div><br></div><div>Thanks for the help. </div>
<div class="HOEnZb"><div class="h5">
<div><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 11:52 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com" target="_blank">eric.noulard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/9/7 Jack Stalnaker <<a href="mailto:jack.stalnaker@gmail.com" target="_blank">jack.stalnaker@gmail.com</a>>:<br>
<div>> Even if I download the tutorial sources directly from <a href="http://cmake.org" target="_blank">cmake.org</a> (for this<br>
> tutorial <a href="http://www.cmake.org/cmake/help/cmake_tutorial.html" target="_blank">http://www.cmake.org/cmake/help/cmake_tutorial.html</a> ), unzip them,<br>
> and run cpack -C CPackSourceConfig.cmake, I don't get a source package.<br>
<br>
</div>-C is the wrong option.<br>
<br>
You should do:<br>
<br>
cpack --config CPackSourceConfig.cmake<br>
<div><br>
> I get what I would consider a binary package. I saw that another user had<br>
> reported the same issue here<br>
> <a href="http://cmake.3232098.n2.nabble.com/How-to-deliver-a-source-code-package-td6505888.html" target="_blank">http://cmake.3232098.n2.nabble.com/How-to-deliver-a-source-code-package-td6505888.html</a><br>
> but didn't really resolve it. That user resorted to make package_source,<br>
> which does indeed pack up the source...and everything else in the directory.<br>
<br>
</div>This is the expected CPack "source" packaging behavior.<br>
If you want to avoid that:<br>
<br>
1) build out-of-source:<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees</a><br>
<br>
2) setup appropriate value for CPACK_SOURCE_IGNORE_FILES<br>
<br>
see cpack --help-variable CPACK_SOURCE_IGNORE_FILES<br>
<div><br>
> I tried throwing some dummy "sandbox" files in there, and they get zipped<br>
> right up, too. Am I doing something wrong? I'm following the tutorial as<br>
> well as I can tell. It seems like the command above should create a source<br>
> package containing no binary files, and only the sources that you have told<br>
> it to include.<br>
<br>
</div>CPack "source" packaging is currently packaging the source directory<br>
while excluding "CPACK_SOURCE_IGNORE_FILES" that's unfortunately<br>
a very basic behavior.<br>
<br>
CPack cannot tel apart binary or source file unless you do out-of-source build.<br>
<span><font color="#888888"><br>
<br>
--<br>
Erk<br>
Le gouvernement représentatif n'est pas la démocratie --<br>
<a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br>