summaryrefslogtreecommitdiff
path: root/src/Witness_complex/include/gudhi/Euclidean_witness_complex.h
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-09-09 16:15:18 +0200
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-09-09 16:15:18 +0200
commitd066372ac3ce5256fcd780a9dfc8e8f871fe65aa (patch)
tree12d609b56bc6052d4f0fa06981d4a7883ed1122c /src/Witness_complex/include/gudhi/Euclidean_witness_complex.h
parent68753b3c28321e28eedd5829c94234da84e25c8d (diff)
parentf510a7e607b46ba8cc118cd787ff9b0b8bff091f (diff)
Merge branch 'master' into split_gudhi_python_in_modules
Diffstat (limited to 'src/Witness_complex/include/gudhi/Euclidean_witness_complex.h')
-rw-r--r--src/Witness_complex/include/gudhi/Euclidean_witness_complex.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/Witness_complex/include/gudhi/Euclidean_witness_complex.h b/src/Witness_complex/include/gudhi/Euclidean_witness_complex.h
index a4430301..21682ec4 100644
--- a/src/Witness_complex/include/gudhi/Euclidean_witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Euclidean_witness_complex.h
@@ -1,12 +1,11 @@
-/* This file is part of the Gudhi Library. The Gudhi library
- * (Geometric Understanding in Higher Dimensions) is a generic C++
- * library for computational topology.
- *
+/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
+ * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
* Author(s): Siargey Kachanovich
*
* Copyright (C) 2015 Inria
*
* Modification(s):
+ * - 2019/08 Vincent Rouvreau: Fix issue #10 for CGAL and Eigen3
* - YYYY/MM Author: Description of the modification
*/
@@ -17,11 +16,24 @@
#include <gudhi/Active_witness/Active_witness.h>
#include <gudhi/Kd_tree_search.h>
+#include <CGAL/version.h> // for CGAL_VERSION_NR
+
+#include <Eigen/src/Core/util/Macros.h> // for EIGEN_VERSION_AT_LEAST
+
#include <utility>
#include <vector>
#include <list>
#include <limits>
+// 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
+
+#if !EIGEN_VERSION_AT_LEAST(3,1,0)
+# error Alpha_complex_3d is only available for Eigen3 >= 3.1.0 installed with CGAL
+#endif
+
namespace Gudhi {
namespace witness_complex {