From 87a8d7962ea13f11e591462ec5757e9e1747dc07 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Tue, 20 Aug 2019 17:05:13 +0200 Subject: Fix issue #10 and modify main and installation documentations accordingly --- src/Tangential_complex/include/gudhi/Tangential_complex.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Tangential_complex/include/gudhi/Tangential_complex.h') 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 #include #include +#include // for CGAL_VERSION_NR #include #include +#include // for EIGEN_VERSION_AT_LEAST #include #include @@ -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 { -- cgit v1.2.3