From 5ea5bc95fd321a848ecc0357aa97e32952c3560a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Sat, 11 Nov 2017 19:54:02 +0100 Subject: [PATCH] make maxflow header compatible with the license checking mecanism --- .../include/CGAL/internal/auxiliary/graph.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Surface_mesh_segmentation/include/CGAL/internal/auxiliary/graph.h b/Surface_mesh_segmentation/include/CGAL/internal/auxiliary/graph.h index b84f5a0500d..8579a791c3e 100644 --- a/Surface_mesh_segmentation/include/CGAL/internal/auxiliary/graph.h +++ b/Surface_mesh_segmentation/include/CGAL/internal/auxiliary/graph.h @@ -242,6 +242,16 @@ void main() #ifndef __MAXFLOW_BLOCK_H__ #define __MAXFLOW_BLOCK_H__ +# if defined(CGAL_LICENSE_WARNING) + CGAL_pragma_warning("\nYou use the MaxFlow package of Vladimir Kolmogorov under the terms of the GPLv2+.") +# endif // CGAL_LICENSE_WARNING + +# ifdef CGAL_LICENSE_ERROR +# error "You use the the MaxFlow package of Vladimir Kolmogorov under the terms of the GPLv2+.\ +You get this error, as you defined CGAL_LICENSE_ERROR." +# endif // CGAL_LICENSE_ERROR + + #include /***********************************************************************/