Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Weird cmake side-effect when including CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Weird cmake side-effect when including CGAL


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Weird cmake side-effect when including CGAL
  • Date: Thu, 12 Sep 2013 11:58:01 +0200
  • Organization: GeometryFactory

Le jeudi 12 septembre 2013 11:13:31 David Coeurjolly a écrit :
> Re,
>
> I've found what was wrong and maybe something should be done in CGAL cmake
> scripts: In fact, all my includes use the CMAKE_MODULE_PATH variable I've
> specified for my project (and not relative explicit paths
> "cmake/xxx.cmake").
>
> When doing a
>
> INCLUDE( ${CGAL_USE_FILE} )
>
> CGAL overwrites the CMAKE_MODULE_PATH variable which may cause problems for
> further cmake scripts includes.
>
> To fix my problem, I've just had to reset the CMAKE_MODULE_PATH after the
> CGAL_USE_FILE include.
>
> Maybe the USE_FILE could backup this variable and reset it when all CGAL
> related scripts have been interpreted...
>
> (I'm using last CGAL / cmake releases)

Which CGAL version do you use? That might help us understanding what happens.

The inclusion of ${CGAL_USE_FILE} should not overwrite CMAKE_MODULE_PATH but
only append something to it. Are you sure the old value of CMAKE_MODULE_PATH
is completely removed?

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page