<div dir="ltr"><div><div><div><div><div>Dear Aleksejs,<br><br></div>this is not a bug in cmake. What you have been doing is the following:<br><br></div>You wrote a module called FindBoost.cmake which contains the command find_package(Boost).<br></div>However, the latter will look for FindBoost.cmake and execute it.... endless loop. Stack overflow. Cmake crash.<br><br></div>Best,<br></div>Dominic</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 12, 2015 at 11:20 AM, Aleksejs Fomins <span dir="ltr"><<a href="mailto:aleksejs.fomins@lspr.ch" target="_blank">aleksejs.fomins@lspr.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Christoph,<br>
<br>
So I can confirm this bug. There is a difference on whether the file is called<br>
<br>
myproject/cmake/modules/FindBoost.cmake<br>
<br>
or<br>
<br>
myproject/cmake/modules/FindMyBoost.cmake<br>
<br>
I attach dunecontrol-log for both cases, and all cmake files involved<br>
<br>
Please tell me if you need more info<br>
<br>
Regards,<br>
Aleksejs<br>
<span class=""><br>
<br>
On 12/05/15 10:57, Christoph GrĂ¼ninger wrote:<br>
> Hi Alexsejs,<br>
> there are no name clashes. CMake implements rules where to look for<br>
> files. When the file is found in the same directory, is taken from<br>
> there. Then there is a search path (we add dune-common to that) and<br>
> finally /usr/share/cmake/Modules/.<br>
><br>
> If this is broken, we should file a bug. Can you share more details?<br>
><br>
> Bye<br>
> Christoph<br>
><br>
><br>
><br>
</span>> _______________________________________________<br>
> Dune mailing list<br>
> <a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
> <a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
><br>
<br>_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@dune-project.org">Dune@dune-project.org</a><br>
<a href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">http://lists.dune-project.org/mailman/listinfo/dune</a><br>
<br></blockquote></div><br></div>