Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] RE: having trouble buildling Mesh3 example - looks like a Boost CMake problem; how to fix?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] RE: having trouble buildling Mesh3 example - looks like a Boost CMake problem; how to fix?


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] RE: having trouble buildling Mesh3 example - looks like a Boost CMake problem; how to fix?
  • Date: Fri, 05 Jul 2013 12:02:49 +0200
  • Organization: GeometryFactory

Le jeudi 04 juillet 2013 19:58:14 Audette, Michel A. a écrit :
> Hi again,
>
> I think that the Mesh3 CMake process is not acknowledging the existence of
> Boost successfully...
>
> if ( CGAL_FOUND )
> include( ${CGAL_USE_FILE} )
> find_package(Boost)
>
> if ( Boost_FOUND AND Boost_VERSION GREATER 103400 )
> include( CGAL_CreateSingleSourceCGALProgram )
>
> # Compilable examples
> create_single_source_cgal_program( "mesh_implicit_sphere.cpp" )
> create_single_source_cgal_program(
> "mesh_implicit_sphere_variable_size.cpp" )
> create_single_source_cgal_program(
> "mesh_two_implicit_spheres_with_balls.cpp" ) (etc...)
>
> My ccmake looks as follows... I have not been successful getting cmake to
> accept my BOOST_DIR properly, even though I went out of my way to get the
> Cmake-based Boost source tree and build it in the usual CMake fashion with
> a separate build directory. Boost_DIR
> Boost_DIR-NOTFOUND
>
> If there is a trick to get Boost_DIR to be set properly, please let me
> know...

The variable Boost_DIR is not for the usage you think about. It must be used
only if your installation of Boost used boost-cmake. That is not common.

It if BOOST_ROOT you should set. If that is not sufficient, have a look at
the
section "Boost libraries" in the Installation chapter of the CGAL manuals:

http://doc.cgal.org/4.2/CGAL.CGAL/html/installation.html#title47

I also suggest you set Boost_DEBUG:BOOL=TRUE if you have any issue with the
script FindBoost.cmake. That will display extra information.

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