[Dune] CMake crash

Dominic Kempf dominic.r.kempf at gmail.com
Tue May 12 11:25:25 CEST 2015


Dear Aleksejs,

this is not a bug in cmake. What you have been doing is the following:

You wrote a module called FindBoost.cmake which contains the command
find_package(Boost).
However, the latter will look for FindBoost.cmake and execute it....
endless loop. Stack overflow. Cmake crash.

Best,
Dominic

On Tue, May 12, 2015 at 11:20 AM, Aleksejs Fomins <aleksejs.fomins at lspr.ch>
wrote:

> Hi Christoph,
>
> So I can confirm this bug. There is a difference on whether the file is
> called
>
> myproject/cmake/modules/FindBoost.cmake
>
> or
>
> myproject/cmake/modules/FindMyBoost.cmake
>
> I attach dunecontrol-log for both cases, and all cmake files involved
>
> Please tell me if you need more info
>
> Regards,
> Aleksejs
>
>
> On 12/05/15 10:57, Christoph GrĂ¼ninger wrote:
> > Hi Alexsejs,
> > there are no name clashes. CMake implements rules where to look for
> > files. When the file is found in the same directory, is taken from
> > there. Then there is a search path (we add dune-common to that) and
> > finally /usr/share/cmake/Modules/.
> >
> > If this is broken, we should file a bug. Can you share more details?
> >
> > Bye
> > Christoph
> >
> >
> >
> > _______________________________________________
> > Dune mailing list
> > Dune at dune-project.org
> > http://lists.dune-project.org/mailman/listinfo/dune
> >
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150512/18460f7c/attachment.htm>


More information about the Dune mailing list