Well if the build directory is *in* the source directory, then make package_source *should* include it.<br><br><div>This is not a problem, but the expected behavior.</div><div><br></div><div>If you don't want the build tree in the source tree, then don't put it there.</div>
<div><br></div><div><br><div class="gmail_quote">On Wed, Mar 9, 2011 at 9:11 PM, Pierre Abbat <span dir="ltr"><<a href="mailto:phma@phma.optus.nu">phma@phma.optus.nu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wednesday 09 March 2011 13:09:39 Michael Hertling wrote:<br>
> Could you boil down your project to a minimal but complete example<br>
> which demonstrates the issues with the header not being found and<br>
> the files not being placed properly and post it here?<br>
<br>
</div>Here's an example of it compiling correctly, but making a package wrong:<br>
minimal.tar.gz .<br>
<br>
-bash-4.1$ cd build<br>
-bash-4.1$ cmake ../src<br>
-- The C compiler identification is GNU<br>
-- The CXX compiler identification is GNU<br>
<snip><br>
-bash-4.1$ make<br>
Scanning dependencies of target readmidi<br>
[100%] Building CXX object CMakeFiles/readmidi.dir/midi.o<br>
Linking CXX executable readmidi<br>
[100%] Built target readmidi<br>
-bash-4.1$ ./readmidi<br>
Header, 6 bytes<br>
Track, 19 bytes<br>
Track, 655 bytes<br>
Track, 675 bytes<br>
Track, 1491 bytes<br>
Track, 1334 bytes<br>
-bash-4.1$ make package_source<br>
<snip><br>
bash-4.1$ cd /tmp<br>
-bash-4.1$ tar xvzf ~/minimal/build/minimal-0.1.1-Source.tar.gz<br>
x minimal-0.1.1-Source/<a href="http://config.h.in" target="_blank">config.h.in</a><br>
x minimal-0.1.1-Source/midi.h<br>
x minimal-0.1.1-Source/CMakeLists.txt~<br>
x minimal-0.1.1-Source/midi.cpp<br>
x minimal-0.1.1-Source/CMakeLists.txt<br>
x minimal-0.1.1-Source/midi.cpp~<br>
<br>
For minimal2, follow the same steps except start with "cmake ..". The program<br>
doesn't compile; the package is rooted correctly, but contains contents of<br>
the build directory as well as the src directory.<br>
<br>
Pierre<br>
<font color="#888888">--<br>
Jews use a lunisolar calendar; Muslims use a solely lunar calendar.<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>