Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] testing CGAL version (in code)
- Date: Fri, 25 Feb 2011 14:30:46 +0100
- Organization: GeometryFactory
Le vendredi 25 février 2011 14:14:23, Samuel Hornus a écrit :
> Hi,
>
> What macro can I use to test if I'm compiling with CGAL >= 3.7 or <= 3.6 ?
>
> Is CGAL_VERSION_NR strictly increasing with new CGAL official releases ?
Yes.
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Preliminaries/Chapter_main.html#sec:cgal_version
You can test like that:
#include <CGAL/config.h>
#include <CGAL/version.h>
#if CGAL_VERSION_NR >= CGAL_VERSION_NUMBER(3,7,0)
// CGAL is 3.7.0 or after
#else
// CGAL is 3.6.x or before
#endif
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] testing CGAL version (in code), Samuel Hornus, 02/25/2011
- Re: [cgal-discuss] testing CGAL version (in code), Laurent Rineau (GeometryFactory), 02/25/2011
- Re: [cgal-discuss] testing CGAL version (in code), Samuel Hornus, 02/25/2011
- Re: [cgal-discuss] testing CGAL version (in code), Laurent Rineau (GeometryFactory), 02/25/2011
Archive powered by MHonArc 2.6.16.