Subject: CGAL users discussion list
List archive
- From: Samuel Hornus <>
- To:
- Subject: Re: [cgal-discuss] testing CGAL version (in code)
- Date: Fri, 25 Feb 2011 14:47:02 +0100
On Feb 25, 2011, at 2:30 PM, Laurent Rineau (GeometryFactory) wrote:
> 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)
Merci beaucoup, it works like a charm now.
I did not know CGAL_VERSION_NUMBER (I did not think about looking in the
"preliminaries" section and was rather looking for some "support" section or
something like that.)
Maybe it would that make sense to separate sub-sections 2.3 to 2.10 of the
documentation into a separate section "MACRO-controls"
thanks again
sam
- [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.