Added an error message when no traits are provided

This commit is contained in:
Mael Rouxel-Labbé 2018-07-08 14:17:45 +02:00
parent 53eff19e67
commit f6f0f98853
2 changed files with 4 additions and 3 deletions

View File

@ -123,7 +123,6 @@ public:
#ifdef CGAL_OPTIMAL_BOUNDING_BOX_DEBUG #ifdef CGAL_OPTIMAL_BOUNDING_BOX_DEBUG
std::cout << "offspringsA: \n" ; std::cout << "offspringsA: \n" ;
check_det(offspringsA); check_det(offspringsA);
std::cin.get();
#endif #endif
// crossover II // crossover II

View File

@ -200,7 +200,8 @@ void compute_optimal_bounding_box(const std::vector<Point>& points,
#if defined(CGAL_EIGEN3_ENABLED) #if defined(CGAL_EIGEN3_ENABLED)
typedef CGAL::Eigen_linear_algebra_traits Linear_algebra_traits; typedef CGAL::Eigen_linear_algebra_traits Linear_algebra_traits;
#else #else
Linear_algebra_traits; #pragma message("Error: You must either provide linear traits or link CGAL with the Eigen library")
Linear_algebra_traits; // no parameter provided, and Eigen is not enabled --> don't compile!
#endif #endif
Linear_algebra_traits la_traits; Linear_algebra_traits la_traits;
@ -258,7 +259,8 @@ void compute_optimal_bounding_box(const PolygonMesh& pmesh,
#if defined(CGAL_EIGEN3_ENABLED) #if defined(CGAL_EIGEN3_ENABLED)
typedef CGAL::Eigen_linear_algebra_traits Linear_algebra_traits; typedef CGAL::Eigen_linear_algebra_traits Linear_algebra_traits;
#else #else
Linear_algebra_traits; #pragma message("Error: You must either provide linear traits or link CGAL with the Eigen library")
Linear_algebra_traits; // no parameter provided, and Eigen is not enabled --> don't compile!
#endif #endif
Linear_algebra_traits la_traits; Linear_algebra_traits la_traits;