summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include/gudhi/Alpha_complex.h
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2019-08-29 10:02:56 +0200
committerGitHub <noreply@github.com>2019-08-29 10:02:56 +0200
commitfb082d6ae9865d148b3d851e50cdaeab00a97c81 (patch)
tree5f1ca83e20cec1be410b119622177d2a3b5ae043 /src/Alpha_complex/include/gudhi/Alpha_complex.h
parent4d1b8c13a5ad5b1c3271b2944e8327b4937f6956 (diff)
parent87a8d7962ea13f11e591462ec5757e9e1747dc07 (diff)
Merge pull request #85 from VincentRouvreau/check_third_parties_at_compilation
Check third parties at compilation
Diffstat (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex.h')
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h
index cdc1ed1d..8919cdb9 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h
@@ -5,6 +5,7 @@
* Copyright (C) 2015 Inria
*
* Modification(s):
+ * - 2019/08 Vincent Rouvreau: Fix issue #10 for CGAL and Eigen3
* - YYYY/MM Author: Description of the modification
*/
@@ -23,6 +24,9 @@
#include <CGAL/Spatial_sort_traits_adapter_d.h>
#include <CGAL/property_map.h> // for CGAL::Identity_property_map
#include <CGAL/NT_converter.h>
+#include <CGAL/version.h> // for CGAL_VERSION_NR
+
+#include <Eigen/src/Core/util/Macros.h> // for EIGEN_VERSION_AT_LEAST
#include <iostream>
#include <vector>
@@ -33,6 +37,15 @@
#include <stdexcept>
#include <numeric> // for std::iota
+// 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 alpha_complex {