Send us a smaller reproducible case that demonstrates there's a problem with cmake custom commands.<br><br>Or, a link to your project's source tree that demonstrates the problem, assuming it's publicly available...<br>
<br><br>Either one possible?<br><br><br><div class="gmail_quote">2010/3/31 Christoph Höger <span dir="ltr"><<a href="mailto:choeger@cs.tu-berlin.de">choeger@cs.tu-berlin.de</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Every Path is absolute.<br>
<br>
Any more suggestions?<br>
<div><div></div><div class="h5"><br>
On Tue, Mar 30, 2010 at 07:46:37PM +0200, Michael Wild wrote:<br>
> Also make sure that all paths are absolute. Relative paths sometimes have strange effects in custom commands.<br>
><br>
> Michael<br>
><br>
> On 30. Mar, 2010, at 19:04 , David Cole wrote:<br>
><br>
> > That would happen if hcparser.y were changed. Does that file also change? Is<br>
> > it generated?<br>
> ><br>
> ><br>
> > 2010/3/30 Christoph Höger <<a href="mailto:choeger@cs.tu-berlin.de">choeger@cs.tu-berlin.de</a>><br>
> ><br>
> >> Hi all,<br>
> >><br>
> >> I have a buildsystem here for a project containing several subprojects. All<br>
> >> those subprojects have their own CMakeLists.txt in a subfolder.<br>
> >> One of those subprojects needs to run a script to generate some<br>
> >> sourcefiles:<br>
> >><br>
> >> add_custom_command(OUTPUT ${typesh} ${typesc}<br>
> >> COMMAND ${binbash} ${PROJECT_SOURCE_DIR}/mosilac/mktypes.sh<br>
> >> DEPENDS ${src}/hcparser.y<br>
> >> WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/mosilac)<br>
> >><br>
> >> This does work. As it does in other places. But in that single place I have<br>
> >> a problem when working on other parts of the buildsystem:<br>
> >> Whenever I change a CMakeLists.txt file subsequent make calls lead to a<br>
> >> re-generation of the output files, although they're unchanged.<br>
> >><br>
> >> Does anyone know why this happens?<br>
> >><br>
><br>
</div></div><div><div></div><div class="h5">_______________________________________________<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></div></div></blockquote></div><br>