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 13:39:59 +0200
  • Organization: GeometryFactory

Le jeudi 12 septembre 2013 12:58:12 David Coeurjolly a écrit :
> Well, you're right... ${CGAL_USE_FILE} appends the path to CGAL modules..
> The problem comes from me since I was using the CMAKE_MODULE_PATH as a
> variable (and not list):
>
> INCLUDE(${CMAKE_MODULE_PATH}/ChechSomething.cmake)
>
> (and surprisingly, cmake (2.8.11.2) does not report a fatal error).
>
> Replacing my code by simply
>
> INCLUDE(ChechSomething)
>
> Solve the issue without manually resetting the variable.

Great! Indeed, that use of INCLUDE is that the intended use of the variable
CMAKE_MODULE_PATH.

--
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