diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-08-20 17:05:13 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2019-08-20 17:05:13 +0200 |
commit | 87a8d7962ea13f11e591462ec5757e9e1747dc07 (patch) | |
tree | 5f1ca83e20cec1be410b119622177d2a3b5ae043 /src/Tangential_complex/include | |
parent | ed59f5bf1b35269cf4324dbb72df863bf50dac01 (diff) |
Fix issue #10 and modify main and installation documentations accordingly
Diffstat (limited to 'src/Tangential_complex/include')
-rw-r--r-- | src/Tangential_complex/include/gudhi/Tangential_complex.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Tangential_complex/include/gudhi/Tangential_complex.h b/src/Tangential_complex/include/gudhi/Tangential_complex.h index b3bac58e..f59476b1 100644 --- a/src/Tangential_complex/include/gudhi/Tangential_complex.h +++ b/src/Tangential_complex/include/gudhi/Tangential_complex.h @@ -5,6 +5,7 @@ * Copyright (C) 2016 Inria * * Modification(s): + * - 2019/08 Vincent Rouvreau: Fix issue #10 for CGAL and Eigen3 * - YYYY/MM Author: Description of the modification */ @@ -29,9 +30,11 @@ #include <CGAL/Delaunay_triangulation.h> #include <CGAL/Combination_enumerator.h> #include <CGAL/point_generators_d.h> +#include <CGAL/version.h> // for CGAL_VERSION_NR #include <Eigen/Core> #include <Eigen/Eigen> +#include <Eigen/src/Core/util/Macros.h> // for EIGEN_VERSION_AT_LEAST #include <boost/optional.hpp> #include <boost/iterator/transform_iterator.hpp> @@ -62,6 +65,15 @@ // #define GUDHI_TC_EXPORT_NORMALS // Only for 3D surfaces (k=2, d=3) +// 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 sps = Gudhi::spatial_searching; namespace Gudhi { |