Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Runtime error with only CImage3 included

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Runtime error with only CImage3 included


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Runtime error with only CImage3 included
  • Date: Fri, 6 Aug 2010 16:10:21 +0200
  • Organization: GeometryFactory

On Friday 06 August 2010 14:59:07 Jean-Christophe Souplet wrote:
> Thank you for your replies,
>
> I think, I did a mistake at the linkage step.
> The software works fine in release (with_static_lib configuration).
> The problem is only in the debug mode (with dynamic library configuration)
>
> Here are the parts of my cmakefile about CGAL
>
> #--------------
> # CGAL
> #--------------
>
> find_package(CGAL COMPONENTS ImageIO)
> IF(CGAL_FOUND)
> INCLUDE(${CGAL_USE_VTK} ${CGAL_USE_FILE})

CGAL_USE_VTK is probably an empty variable, otherwise this line should
triggers a CMake syntax error.

The inclusion of ${CGAL_USE_FILE} makes CMake automatically link all targets
that are defined after with CGAL libraries (libCGAL, and libCGAL_ImaeIO in
your case).


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

Top of Page