Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: [cgal-discuss] problem with CGAL and CMAKE - mostly SOLVED

Subject: CGAL users discussion list

List archive

Re: Re: [cgal-discuss] problem with CGAL and CMAKE - mostly SOLVED


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To: Anthony Truchet <>
  • Cc:
  • Subject: Re: Re: [cgal-discuss] problem with CGAL and CMAKE - mostly SOLVED
  • Date: Thu, 02 Aug 2012 16:43:31 +0200
  • Organization: GeometryFactory

Le jeudi 02 août 2012 15:05:00 Anthony Truchet a écrit :
> Le 02/08/2012 13:15, Laurent Rineau (CGAL/GeometryFactory) a écrit :
> > Le jeudi 02 août 2012 11:36:37 anthony a écrit :
> >> I suspect so-called auto-link feature is implied because it does no make
> >> sense (at least to me for now) to freeze in the lib/CGAL/CGALConfig.cmake
> >> file the kind of compilation option the clinet project will use...
> >> I'm very willing to contribute a patch but I would need some help from
> >> CGAL
> >> / CMake gurus to do so. Thanks.
> >
> > Indeed on Windows, when MSVC is used, the CGAL*LIBRARY variables are
> > empty, on purpose, because the auto-linking i used.
>
> Thanks for this quick answer. But how come then that those variables are
> used, resulting in so many errors ? Is it on CGAL side on the client
> projet side ? I would have expected that the UseCGAL.cmake would do
> "what is required".

That is probably a bug with the INSTALL target of the MSVC solution. It was
never tried. In the CGALConfig.cmake, the CGAL*LIBRARY variables should be
empty.

> By the way could you please point me to where the autolink feature is
> implemented / documented so that I can understand it better and
> hopefully fix those annpying messages ?

The auto-link is a feature that we copied from Boost library. See:
http://www.boost.org/doc/libs/1_50_0/more/getting_started/windows.html#auto-linking

The feature relies on the "pragma comment", with the "lib" option:
http://msdn.microsoft.com/en-us/library/7f0aews7%28VS.110%29.aspx

The files <CGAL/auto_link/*.h> compute the right values for the lib option,
depending on the compiler version, and compilation flags.

You can use the flags -DCGAL_LIB_DIAGNOSTIC and -DBOOST_LIB_DIAGNOSTIC to
have messages during the compilation, to see which libraries are
automatically linked.

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