summaryrefslogtreecommitdiff
path: root/src/Bottleneck_distance/include/gudhi/Bottleneck.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bottleneck_distance/include/gudhi/Bottleneck.h')
-rw-r--r--src/Bottleneck_distance/include/gudhi/Bottleneck.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Bottleneck_distance/include/gudhi/Bottleneck.h b/src/Bottleneck_distance/include/gudhi/Bottleneck.h
index d31c82ee..82ba9f68 100644
--- a/src/Bottleneck_distance/include/gudhi/Bottleneck.h
+++ b/src/Bottleneck_distance/include/gudhi/Bottleneck.h
@@ -5,8 +5,9 @@
* Copyright (C) 2015 Inria
*
* Modification(s):
- * - YYYY/MM Author: Description of the modification
* - 2019/06 Vincent Rouvreau : Fix doxygen warning.
+ * - 2019/08 Vincent Rouvreau: Fix issue #10 for CGAL
+ * - YYYY/MM Author: Description of the modification
*/
#ifndef BOTTLENECK_H_
@@ -14,6 +15,8 @@
#include <gudhi/Graph_matching.h>
+#include <CGAL/version.h> // for CGAL_VERSION_NR
+
#include <vector>
#include <algorithm> // for max
#include <limits> // for numeric_limits
@@ -21,6 +24,11 @@
#include <cmath>
#include <cfloat> // FLT_EVAL_METHOD
+// Make compilation fail - required for external projects - https://github.com/GUDHI/gudhi-devel/issues/10
+#if CGAL_VERSION_NR < 1041101000
+# error Alpha_complex_3d is only available for CGAL >= 4.11
+#endif
+
namespace Gudhi {
namespace persistence_diagram {